Structures

The following structures are available globally.

  • A piece of view model input.

    You define the input generated and passed to each presented view model for initialiation.

    See more

    Declaration

    Swift

    @dynamicMemberLookup
    public struct MwxInput : AnyInput
  • A piece of output factory.

    You define the output factory that generates inputs passed to presented view models for initialiation.

    See more

    Declaration

    Swift

    @dynamicCallable
    public struct MwxOutput : AnyOutput
  • A view modifier used to bind and wrap up a body or navigation view to its corresponding view model lifecycle.

    See more

    Declaration

    Swift

    public struct MwxBodyModifier<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.

    See more

    Declaration

    Swift

    public struct MwxLinkModifier<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.

    See more

    Declaration

    Swift

    public struct MwxSheetModifier<VM> : ViewModifier where VM : AnyViewModel
  • A link modifier that you apply to a view or another view modifier coordinated by a tab coordinator producing a tab view with tab items for an input title and image.

    See more

    Declaration

    Swift

    public struct MwxTabModifier<VM> : ViewModifier where VM : AnyViewModel
  • A type-erased View.

    An MwxBody allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an MwxBody changes, the old hierarchy is destroyed and a new hierarchy is created for the new type use to wrap up a coordinated view.

    See more

    Declaration

    Swift

    public struct MwxBody<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.

    See more

    Declaration

    Swift

    public struct MwxNavigationBody<Content> : View where Content : View
  • A type-erased View.

    An MwxTabBody allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an MwxTabBody changes, the old hierarchy is destroyed and a new hierarchy is created for the new type use to wrap up a tab view coordinated view.

    See more

    Declaration

    Swift

    public struct MwxTabBody : View