Skip to content

Commit

Permalink
refactor: Avoid creating an instance of EKEventStore when it's not ne…
Browse files Browse the repository at this point in the history
…eded
  • Loading branch information
Rafael da Silva Ferreira authored and Rafael da Silva Ferreira committed Dec 12, 2024
1 parent 2f1ecf6 commit 2915c8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Classes/SwiftDeviceCalendarPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class SwiftDeviceCalendarPlugin: NSObject, FlutterPlugin, EKEventViewDele
let calendarNotFoundErrorMessageFormat = "The calendar with the ID %@ could not be found"
let calendarReadOnlyErrorMessageFormat = "Calendar with ID %@ is read-only"
let eventNotFoundErrorMessageFormat = "The event with the ID %@ could not be found"
let eventStore = EKEventStore()
lazy var eventStore = EKEventStore()
let requestPermissionsMethod = "requestPermissions"
let hasPermissionsMethod = "hasPermissions"
let retrieveCalendarsMethod = "retrieveCalendars"
Expand Down

0 comments on commit 2915c8e

Please sign in to comment.