Post

Replies

Boosts

Views

Activity

Comment on How to get the UIViewController instance for displaying dialog when the app starts up?
Hi OOPer, My project does not have an automatically generated SceneDelegate.swift. I remember when the iOS13 was the newest iOS version, SceneDelegate.swift is automatically generated when I create a project, but for newer version (after iOS14) of Xcode, both SceneDelegate.swift and AppDelegate.swift are no longer automatically generated. I was able to add a an AppDelegate.swift file to the project, but don't know how to add SceneDelegate.swift. As long as there is a way for me to get the UIViewControl object that is being display on the phone, I think passing it into the SDK function will make it display the proper dialog. By the way, I followed the following link to add the AppDelegate.swift, but wasn't able to find a similar method for SceneDelegate.swift www .hackingwithswift.com/quick-start/swiftui/how-to-add-an-appdelegate-to-a-swiftui-app
Aug ’21