1

In my app I've got actions so application(_:performActionFor:completionHandler:) is called when it's executed. Previously it was grabbing the storyboard and showing the right UIViewController. How, in iOS 13, do I grab the appropriate SwiftUI View and display that instead?

Gargoyle
  • 9,590
  • 16
  • 80
  • 145
  • It’s unclear what issue you are having. Please update your question with more details. – rmaddy Aug 08 '19 at 15:45
  • When the app delegate method is called, how do you instantiate an iOS 13 SwiftUI `View`. For storyboards I'd just instantiate `UIStoryboard(name: "Main", bundle: nil)` and then call `present` against the root view. How do I do the equivalent in iOS 13 with scenes? – Gargoyle Aug 08 '19 at 15:48
  • Implement the corresponding scene delegate method. – rmaddy Aug 08 '19 at 17:02
  • Which one? I don't see anything in `UISceneDelegate` that seems to correspond to an action. – Gargoyle Aug 08 '19 at 17:04
  • Look at `UIWindowSceneDelegate`. – rmaddy Aug 08 '19 at 19:49
  • Thanks! Don't know how I missed that. – Gargoyle Aug 09 '19 at 02:40
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/197702/discussion-between-gargoyle-and-rmaddy). – Gargoyle Aug 09 '19 at 02:53
  • Possible duplicate of [Xcode 11 & iOS13, using UIKIT can't change background colour of UIViewController](https://stackoverflow.com/questions/58251425/xcode-11-ios13-using-uikit-cant-change-background-colour-of-uiviewcontroller) – valosip Oct 26 '19 at 01:40

0 Answers0