squimer / DatePickerDialog-iOS-Swift

Date picker dialog for iOS
MIT License
584 stars 177 forks source link

Dialog not showing in iOS 13 #106

Open sylvia971 opened 4 years ago

sylvia971 commented 4 years ago

The dialog is not showing when running the app in iOS 13.

justdan0227 commented 4 years ago

seeing that here too

Dubey-Shivani commented 4 years ago

Crash on calling dialog picker show function.

fjpady commented 4 years ago

This is because in iOS 13, App Delegate does not have the variable "window".

You must create it within AppDelegate, Then, let's go to SceneDelegate, At the end of func scene (_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {

and set the "Window" variable of "AppDelegate":

let appDel = (UIApplication.shared.delegate as! AppDelegate) appDel.window = window

pikeychahar commented 3 years ago

I also have a problem with AppDelegate, I'm unable to skip login VC