SwiftUI (fullscreen) modal on iPad
UIKit + SwiftUI Hybrid approach
One way to achieve a full screen modal presentation on iPad is to wrap each
View instance in a
UIHostController and then use
ObservableObject for the communication between
By using this approach, one can easily leverage the existing presentation API's from
UIKit while still having
View instances made with
- Fulscreen modal presentation on iPad.
- Ability to use
UIKitpresentation APIs. Storyboards, Nibs, Custom transitions etc.
- Too much Boilerplate code.