Skip to content

Commit 7372cc9

Browse files
committed
💡 Add docs
1 parent 97518c1 commit 7372cc9

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Sources/Model/Service.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ enum Service: String, Codable, ExpressibleByArgument {
4343
}
4444
}
4545

46-
// generate the url to show the event in the Calendar.app
47-
// "ical://ekevent/\(startTimeAsIso)/\(event.calendarItemIdentifier)?method=show&options=more"
48-
// with
49-
// `startTimeAsIso` in "yyyyMMdd'T'HHmmss'Z'"
50-
// `calendaritemidentifier` being the
51-
//
52-
// the method is basically a copy of https://github.com/raycast/extensions/blob/36abdaacac9b02cbbc54dbe33f16b6c40cd23f54/extensions/menubar-calendar/swift/AppleReminders/Sources/Calendar.swift#L61
46+
/// Generate the url to show the event in the Calendar.app
47+
///
48+
/// Format:
49+
/// "ical://ekevent/\(startTimeAsIso)/\(event.calendarItemIdentifier)?method=show&options=more"
50+
/// with
51+
/// `startTimeAsIso` in "yyyyMMdd'T'HHmmss'Z'"
52+
/// `calendaritemidentifier` being the
53+
///
54+
/// See also https://github.com/raycast/extensions/blob/36abdaacac9b02cbbc54dbe33f16b6c40cd23f54/extensions/menubar-calendar/swift/AppleReminders/Sources/Calendar.swift#L61
5355
static func buildIcalURL(
5456
calendarItemIdentifier: String,
5557
isAllDay: Bool,

0 commit comments

Comments
 (0)