MwxSheetModifier

public struct MwxSheetModifier<VM> : ViewModifier where VM : AnyViewModel

A link modifier that you apply to a view or another view modifier coordinated by a sheet coordinator producing a sheet view for this view.

  • The sheet 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 sheet view 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 sheet coordinator with a sheet view.