init(coder:rootView:)
Creates a hosting controller object from an archive and the specified SwiftUI view.
Declaration
@MainActor @preconcurrency init?(coder: NSCoder, rootView: Content)Parameters
- coder:
The decoder to use during initialization.
- rootView:
The root view of the SwiftUI view hierarchy that you want to manage using this view controller.