A UIKit view controller that manages a SwiftUI view hierarchy.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
- Xcode 11.0+
UIHosting object when you want to integrate SwiftUI views into a UIKit view hierarchy. At creation time, specify the SwiftUI view you want to use as the root view for this view controller; you can change that view later using the
root property. Use the hosting controller like you would any other view controller, by presenting it or embedding it as a child view controller in your interface.