Protocols
The following protocols are available globally.
-
Protocol specifying the component’s cell view implementation.
See moreDeclaration
Swift
protocol FWComponentCell : UITableViewCell
-
Protocol specifying a component’s data structure.
See moreDeclaration
Swift
protocol FWComponentModel : Decodable, Encodable
-
Protocol specifying a component’s data structure transfer object.
Used for decoding the object. We recommend keeping both Model and DTO implementations in the same files, for one is expected to mirror another and DTO is generally used only within the Model
See moreCodable
methods.Declaration
Swift
protocol FWComponentModelDTO : Decodable, Encodable
-
Protocol specifying the component’s data structure.
See moreDeclaration
Swift
protocol FWComponentViewModel
-
Protocol specifying what methods should be implemented when using
See moreFWMultilineComponentViewModel
.Declaration
Swift
protocol FWMultilineComponentViewModelDelegate : AnyObject
-
Protocol specifying what methods should be implemented when using
See moreFWTextComponentViewModel
.Declaration
Swift
protocol FWTextComponentViewModelDelegate : AnyObject
-
Responsible for providing a communication path for the
See moreFWFormViewController
to notify relevant state changes in the form.Declaration
Swift
public protocol FWFormViewControllerDelegate : AnyObject
-
Responsible for providing a communication path between the
See moreFWFormViewModel
and itsView
.Declaration
Swift
protocol FWFormViewModelDelegate : AnyObject
-
Protocol specifying the characteristics of a component snapshot.
See moreDeclaration
Swift
protocol FWComponentSnapshot : Encodable
-
A protocol that every validator class need to conform to validate components.
See moreDeclaration
Swift
public protocol FWValidator