Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: why set calendar Deprecated ? Forces me to use calendarFullAccess? #1326

Open
3 of 5 tasks
yanashenyang opened this issue May 27, 2024 · 0 comments
Open
3 of 5 tasks

Comments

@yanashenyang
Copy link

Please check the following before submitting a new issue.

Please select for which platform(s) you need help

  • Android
  • iOS
  • Windows

Your question

you set calendar Deprecated, and Forces me to use calendarFullAccess, calendarWriteOnly
but in ios

@available(iOS 6.0, *)
public enum EKAuthorizationStatus : Int, @unchecked Sendable {

    case notDetermined = 0

    case restricted = 1

    case denied = 2

    @available(iOS 17.0, *)
    case fullAccess = 3

    @available(iOS 17.0, *)
    case writeOnly = 4

    
    @available(iOS, introduced: 6.0, deprecated: 17.0, message: "Check for full access or write only access")
    public static var authorized: EKAuthorizationStatus { get }
}

fullAccess & writeOnly is available in iOS 17.0
And your document also explains how to use calendar in iOS 17

Permission Info.plist Macro
PermissionGroup.calendar (< iOS 17) NSCalendarsUsageDescription PERMISSION_EVENTS
PermissionGroup.calendarWriteOnly (iOS 17+) NSCalendarsWriteOnlyAccessUsageDescription PERMISSION_EVENTS
PermissionGroup.calendarFullAccess (iOS 17+) NSCalendarsFullAccessUsageDescription PERMISSION_EVENTS_FULL_ACCESS

I only want to use calendar below iOS 17

Version

11.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant