MwxLinkModifier
public struct MwxLinkModifier<VM> : ViewModifier where VM : AnyViewModel
A link modifier that you apply to a view or another view modifier coordinated by a link coordinator producing a navigation link for this view.
-
The link coordinator for this view.
When you create a coordinator, Swift infers this type from the generic
VM
type property.Declaration
Swift
@ObservedObject public var coordinator: MwxCoordinator<VM> { get set }
-
Creates a navigation link for the modified view.
Declaration
Swift
public func body(content: Content) -> some View
Parameters
content
A closure returning the content of the view.
Return Value
The view coordinated by a link coordinator with a navigation link.