FWMultilineComponentViewModel
final class FWMultilineComponentViewModel : FWComponentViewModel
Object responsible for handling all the data handling and business logic of the FWMultilineComponentView
.
-
View responsible for receiving the method calls of the ViewModel.
Declaration
Swift
weak var delegate: FWMultilineComponentViewModelDelegate
-
Initializes viewModel for
FWMultilineComponentView
.Declaration
Swift
init(model: FWTextModel)
Parameters
model
Data source for the multiline component.
-
Title of the component.
Declaration
Swift
var title: String { get }
-
Description of the component.
Declaration
Swift
var description: String { get }
-
Required of the component.
Declaration
Swift
var required: Bool { get }
-
Placeholder of the component.
Declaration
Swift
var placeholder: String { get }
-
Type of the component.
Declaration
Swift
var type: FWComponentModelWrapper.Types { get }
-
Rule for the validator of this component.
Declaration
Swift
var validatorRuleMessage: String { get }
-
Boolean value indicating if the current input is valid.
Declaration
Swift
var isValid: Bool { get set }
-
Content of the component inputted by the user.
Declaration
Swift
var content: String { get set }
-
Returns a snapshot of the component containing all the information currently stored in them.
Declaration
Swift
func takeSnapshot() -> FWComponentSnapshot
Return Value
FWComponentSnapshot
containing the information of the component.