Contents

init(rootView:)

Creates a hosting view object that wraps the specified SwiftUI view.

Declaration

@MainActor @preconcurrency required init(rootView: Content)

Parameters

  • rootView:

    The root view of the SwiftUI view hierarchy that you want to manage using this hosting view.

See Also

Creating a hosting view