Eventstore permission error on iOS 17
Problem:
Event store permissions are to be like that below in previous versions of iOS but in iOS 17 it shows an exception.
eventDB.
if granted {
let eventDB = appdel.eventStoreNew!//
if #available(iOS 17.0, *) {
eventDB.
print(grantedEvent)
})
eventDB.
if grantedEvent {
else {
// Fallback on earlier versions
eventDB.requestAccess(to: .event, completion: { (granted, error) in
if granted {
}})
eventDB.requestAccess(to: .reminder, completion: { (grantedEvent, error) in
if grantedEvent {
}
Comments
Post a Comment