Protocols
The following protocols are available globally.
-
A piece of user interface.
You create custom views by declaring types that conform to the
See moreMwxViewprotocol. Implement the requiredbodyproperty to provide the content and behavior for your custom view. Implement the requiredvmproperty to provide the view model.Declaration
Swift
public protocol MwxView : View -
You conform to the
See moreAnyViewModelprotocol to define the model that is used by your view to bind to properties and logic needed and to handle its lifecycle. Implement the requiredViewTypeproperty to provide the view type.Declaration
Swift
public protocol AnyViewModel -
You conform to the
See moreAnyCoordinatorprotocol to define the coordinator that manages the navigation lifecycle of a view by coordinating its corresponding view model. Implement the requiredviewModelTypeproperty to provide the view model type.Declaration
Swift
public protocol AnyCoordinator -
You conform to the
See moreAnyInputprotocol to define the input generated and passed to each presented view model for initialiation.Declaration
Swift
public protocol AnyInput -
You conform to the
See moreAnyOutputprotocol to define the output factory that generates inputs passed to presented view models for initialiation.Declaration
Swift
public protocol AnyOutput -
You conform to the
See moreAnyServicesprotocol to register all services your application uses by defining their classes and corresponding conforming protocols and lifecycle for each service.Declaration
Swift
public protocol AnyServices -
You conform to the
AnyViewItemprotocol 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
See moreMwxCellprotocol. Implement the requiredbodyproperty to provide the content and behavior for your custom view. Implement the requiredviproperty to provide the view item.Declaration
Swift
public protocol MwxCell : View
View on GitHub
Protocols Reference