FWComponentViewModel
protocol FWComponentViewModel
Protocol specifying the component’s data structure.
-
Component title value.
Declaration
Swift
var title: String { get }
-
Component description value.
Declaration
Swift
var description: String { get }
-
Boolean value indicating if this is a required value.
Declaration
Swift
var required: Bool { get }
-
Boolean value indicating if the current input is valid.
Declaration
Swift
var isValid: Bool { get set }
-
Returns an object containing all the inputs.
Declaration
Swift
func takeSnapshot() -> FWComponentSnapshot