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
270 stars 271 forks source link

keyWindow depricated #529

Closed SuperKrallan closed 8 months ago

SuperKrallan commented 8 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 8 months ago

Upgraded to 4.3.2 which seems to solve it.

SuperKrallan commented 8 months ago

Sorry... :)