Skip to content

Commit

Permalink
Fix macOS 14 #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Oct 6, 2023
1 parent 0a5dbf1 commit 896d879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OversizeCalendarService/CalendarService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public actor CalendarService {
func requestAccess() async -> Result<Bool, AppError> {
do {
let status: Bool
if #available(iOS 17.0, *) {
if #available(iOS 17.0, macOS 14.0, *) {
status = try await eventStore.requestFullAccessToEvents()
} else {
status = try await eventStore.requestAccess(to: .event)
Expand Down

0 comments on commit 896d879

Please sign in to comment.