MwxNavigationBody
public struct MwxNavigationBody<Content> : View where Content : View
A type-erased View.
An MwxNavigationBody allows changing the type of view
used in a given view hierarchy. Whenever the type of view used
with an MwxNavigationBody changes, the old hierarchy is
destroyed and a new hierarchy is created for the new type use
to wrap up a coordinated navigation view.
-
Represents a value with a view modifier applied to it.
When you create a custom body, Swift infers this type from the generic
Contenttype property.Declaration
Swift
public let content: Content
-
Creates an instance of this view. Required.
Declaration
Swift
public init(@ViewBuilder content: () -> Content)Parameters
contentA closure returning the content of the view.
-
Declares the content and behavior of this view.
When you create a custom view, Swift infers this type from your implementation of the required
bodyproperty.Declaration
Swift
public var body: some View { get }
View on GitHub
MwxNavigationBody Structure Reference