Skip to content

Commit

Permalink
Updated asking permission for calendar.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Sep 27, 2023
1 parent 6d13eb8 commit 6c4136d
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Sources/CalendarPermission/CalendarPermission.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,8 @@ import EventKit

public extension Permission {

static var calendar: CalendarPermission {
return CalendarPermission(kind: .calendar(access: .full))
}
}

@available(iOS 17.0, *)
public extension Permission {

static var calendarWriteOnly: CalendarPermission {
return CalendarPermission(kind: .calendar(access: .write))
static func calendar(access: CalendarAccess) -> CalendarPermission {
CalendarPermission(kind: .calendar(access: access))
}
}

Expand Down

0 comments on commit 6c4136d

Please sign in to comment.