Skip to content

Commit a548063

Browse files
committed
Fixed state request.
1 parent be120aa commit a548063

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

PermissionsKit.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::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 }

Sources/CalendarPermission/CalendarPermission.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)