removed superscript
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
790f440b38
commit
8237fc2ada
@ -17,8 +17,13 @@ struct TestLayoutModel: Modelable {
|
|||||||
// var molecules : [any Modelable] = []
|
// var molecules : [any Modelable] = []
|
||||||
var checkbox: DefaultCheckboxModel
|
var checkbox: DefaultCheckboxModel
|
||||||
var radioButtonGroup: DefaultRadioButtonGroupModel
|
var radioButtonGroup: DefaultRadioButtonGroupModel
|
||||||
|
var subscribers = Set<AnyCancellable>()
|
||||||
init(){
|
init(){
|
||||||
|
let labelAction = LabelAttributeActionModel(location: 31, length: 10)
|
||||||
|
labelAction.action.sink {
|
||||||
|
print("clicked on the word 'conditions'")
|
||||||
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
//add the checkbox
|
//add the checkbox
|
||||||
checkbox = DefaultCheckboxModel()
|
checkbox = DefaultCheckboxModel()
|
||||||
checkbox.labelText = "Terms and conditions"
|
checkbox.labelText = "Terms and conditions"
|
||||||
@ -27,8 +32,9 @@ struct TestLayoutModel: Modelable {
|
|||||||
LabelAttributeUnderline(location: 11, length: 10),
|
LabelAttributeUnderline(location: 11, length: 10),
|
||||||
LabelAttributeStrikeThrough(location: 22, length: 5),
|
LabelAttributeStrikeThrough(location: 22, length: 5),
|
||||||
LabelAttributeColor(location: 31, length: 10, color: UIColor.blue.hexString!),
|
LabelAttributeColor(location: 31, length: 10, color: UIColor.blue.hexString!),
|
||||||
LabelAttributeActionModel(location: 31, length: 10){ print("clicked on the word 'conditions'") },
|
LabelAttributeFont(location: 2, length: 5, style: .BoldTitleLarge, color: UIColor.red.hexString!),
|
||||||
LabelAttributeFont(location: 2, length: 5, style: .BoldTitleLarge, color: UIColor.red.hexString!)
|
labelAction
|
||||||
|
|
||||||
]
|
]
|
||||||
checkbox.errorText = "Error Text"
|
checkbox.errorText = "Error Text"
|
||||||
|
|
||||||
@ -42,8 +48,8 @@ struct TestLayoutModel: Modelable {
|
|||||||
LabelAttributeUnderline(location: 11, length: 10),
|
LabelAttributeUnderline(location: 11, length: 10),
|
||||||
LabelAttributeStrikeThrough(location: 22, length: 5),
|
LabelAttributeStrikeThrough(location: 22, length: 5),
|
||||||
LabelAttributeColor(location: 31, length: 10, color: UIColor.blue.hexString!),
|
LabelAttributeColor(location: 31, length: 10, color: UIColor.blue.hexString!),
|
||||||
LabelAttributeActionModel(location: 31, length: 10){ print("clicked on the word 'conditions'") },
|
LabelAttributeFont(location: 2, length: 5, style: .BoldTitleLarge, color: UIColor.red.hexString!),
|
||||||
LabelAttributeFont(location: 2, length: 5, style: .BoldTitleLarge, color: UIColor.red.hexString!)
|
labelAction
|
||||||
]
|
]
|
||||||
|
|
||||||
var radio2 = DefaultRadioButtonModel()
|
var radio2 = DefaultRadioButtonModel()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user