init(rootView:)
Creates a hosting controller object that wraps the specified SwiftUI view.
Declaration
@MainActor @preconcurrency init(rootView: Content)Parameters
- rootView:
The root view of the SwiftUI view hierarchy that you want to manage using the hosting view controller.
Return Value
A UIHostingController object initialized with the specified SwiftUI view.