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
VMtype 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 ViewParameters
contentA closure returning the content of the view.
Return Value
The view coordinated by a link coordinator with a navigation link.
View on GitHub
MwxLinkModifier Structure Reference