builttoroam / device_calendar

A cross platform plugin for modifying calendars on the user's device
https://pub.dev/packages/device_calendar
BSD 3-Clause "New" or "Revised" License
259 stars 258 forks source link

keyWindow depricated #529

Closed SuperKrallan closed 3 months ago

SuperKrallan commented 3 months ago

In SwiftDeviceCalendarPlugin "keyWindow" is used:

private func getTopMostViewController() -> UIViewController { var topController: UIViewController? = UIApplication.shared.keyWindow?.rootViewController while ((topController?.presentedViewController) != nil) { topController = topController?.presentedViewController }

     return topController!
}

...which was depricated in iOS 13.0.

Creates a warning, but code still works.

SuperKrallan commented 3 months ago

Upgraded to 4.3.2 which seems to solve it.

SuperKrallan commented 3 months ago

Sorry... :)