Protocols

The following protocols are available globally.

  • A piece of user interface.

    You create custom views by declaring types that conform to the MwxView protocol. Implement the required body property to provide the content and behavior for your custom view. Implement the required vm property to provide the view model.

    See more

    Declaration

    Swift

    public protocol MwxView : View
  • You conform to the AnyViewModel protocol to define the model that is used by your view to bind to properties and logic needed and to handle its lifecycle. Implement the required ViewType property to provide the view type.

    See more

    Declaration

    Swift

    public protocol AnyViewModel
  • You conform to the AnyCoordinator protocol to define the coordinator that manages the navigation lifecycle of a view by coordinating its corresponding view model. Implement the required viewModelType property to provide the view model type.

    See more

    Declaration

    Swift

    public protocol AnyCoordinator
  • You conform to the AnyInput protocol to define the input generated and passed to each presented view model for initialiation.

    See more

    Declaration

    Swift

    public protocol AnyInput
  • You conform to the AnyOutput protocol to define the output factory that generates inputs passed to presented view models for initialiation.

    See more

    Declaration

    Swift

    public protocol AnyOutput
  • You conform to the AnyServices protocol to register all services your application uses by defining their classes and corresponding conforming protocols and lifecycle for each service.

    See more

    Declaration

    Swift

    public protocol AnyServices
  • You conform to the AnyViewItem protocol to define the model that is used by your view to bind to properties and logic needed and to handle its lifecycle.

    Declaration

    Swift

    public protocol AnyViewItem : ObservableObject, Identifiable
  • A piece of user interface.

    You create custom cells by declaring types that conform to the MwxCell protocol. Implement the required body property to provide the content and behavior for your custom view. Implement the required vi property to provide the view item.

    See more

    Declaration

    Swift

    public protocol MwxCell : View