File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Sources/CalendarPermission Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22
33 s . name = "PermissionsKit"
4- s . version = "9.2.1 "
4+ s . version = "9.2.2 "
55 s . summary = "Ask permissions with ready-use interface. You can check status permission and if it has been requested before. Support SwiftUI."
66 s . homepage = "https://github.com/sparrowcode/PermissionsKit"
77 s . source = { :git => "https://github.com/sparrowcode/PermissionsKit.git" , :tag => s . version }
Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ public class CalendarPermission: Permission {
6464 }
6565
6666 public override var status : Permission . Status {
67+ // Fix when status first time response with other state.
68+ let _ = EKEventStore . authorizationStatus ( for: EKEntityType . event)
69+
6770 switch EKEventStore . authorizationStatus ( for: EKEntityType . event) {
6871 case . authorized: return . authorized
6972 case . denied: return . denied
You can’t perform that action at this time.
0 commit comments