Protocols
The following protocols are available globally.
-
A piece of user interface.
You create custom views by declaring types that conform to the
See moreMwxView
protocol. Implement the requiredbody
property to provide the content and behavior for your custom view. Implement the requiredvm
property to provide the view model.Declaration
Swift
public protocol MwxView : View
-
You conform to the
See moreAnyViewModel
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 requiredViewType
property to provide the view type.Declaration
Swift
public protocol AnyViewModel
-
You conform to the
See moreAnyCoordinator
protocol to define the coordinator that manages the navigation lifecycle of a view by coordinating its corresponding view model. Implement the requiredviewModelType
property to provide the view model type.Declaration
Swift
public protocol AnyCoordinator
-
You conform to the
See moreAnyInput
protocol to define the input generated and passed to each presented view model for initialiation.Declaration
Swift
public protocol AnyInput
-
You conform to the
See moreAnyOutput
protocol 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 moreAnyServices
protocol 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
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
See moreMwxCell
protocol. Implement the requiredbody
property to provide the content and behavior for your custom view. Implement the requiredvi
property to provide the view item.Declaration
Swift
public protocol MwxCell : View