We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a051d commit e443527Copy full SHA for e443527
Sources/Model/Calendar.swift
@@ -19,12 +19,31 @@ extension CGColor {
19
}
20
21
22
+extension EKCalendarType: CustomStringConvertible {
23
+ public var description: String {
24
+ switch self {
25
+ case .local:
26
+ return "local"
27
+ case .calDAV:
28
+ return "caldav"
29
+ case .exchange:
30
+ return "exchange"
31
+ case .subscription:
32
+ return "subscription"
33
+ case .birthday:
34
+ return "birthday"
35
+ default:
36
+ return "unknown"
37
+ }
38
39
+}
40
+
41
extension EKCalendar {
42
func asCal() -> Calendar {
43
let id = calendarIdentifier
44
let label = title
45
let color = cgColor.asHexString()
- let type = String(describing: type)
46
+ let type = type.description
47
48
return Calendar(
49
id: id,
0 commit comments