diff --git a/VDSSample/ViewControllers/CheckboxViewController.swift b/VDSSample/ViewControllers/CheckboxViewController.swift index 4839f95..8eadcaa 100644 --- a/VDSSample/ViewControllers/CheckboxViewController.swift +++ b/VDSSample/ViewControllers/CheckboxViewController.swift @@ -31,10 +31,16 @@ class CheckboxViewController: UIViewController, StoryboardInitable { override func viewDidLoad() { super.viewDidLoad() - var model = DefaultCheckboxModel() model.labelText = "Terms and conditions" - model.childText = "I agree to Verizon's terms and conditions" + model.childText = "I agree to Verizon's terms and conditions click here" + model.childTextAttributes = [ + LabelAttributeUnderline(location: 11, length: 10), + LabelAttributeStrikeThrough(location: 22, length: 5), + 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!) + ] model.errorText = "Error Text" surfaceLabel.text = model.surface.rawValue