updated samplelabel
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
01923afe4a
commit
4820dc66cd
@ -65,10 +65,10 @@ public extension UIView {
|
|||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) }
|
||||||
|
|
||||||
return elements
|
return elements
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -102,6 +102,8 @@ class LabelViewController: BaseViewController<Label> {
|
|||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let sampleLabel = Label()
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
@ -109,7 +111,6 @@ class LabelViewController: BaseViewController<Label> {
|
|||||||
let fullText = "Here is a sample of text that has an inline text link that you can click on!"
|
let fullText = "Here is a sample of text that has an inline text link that you can click on!"
|
||||||
let linkText = "inline text link"
|
let linkText = "inline text link"
|
||||||
|
|
||||||
let sampleLabel = Label()
|
|
||||||
sampleLabel.textStyle = .titleLarge
|
sampleLabel.textStyle = .titleLarge
|
||||||
sampleLabel.text = fullText
|
sampleLabel.text = fullText
|
||||||
|
|
||||||
@ -161,6 +162,7 @@ class LabelViewController: BaseViewController<Label> {
|
|||||||
|
|
||||||
disabledSwitch.onChange = { [weak self] sender in
|
disabledSwitch.onChange = { [weak self] sender in
|
||||||
self?.component.isEnabled = !sender.isOn
|
self?.component.isEnabled = !sender.isOn
|
||||||
|
self?.sampleLabel.isEnabled = !sender.isOn
|
||||||
}
|
}
|
||||||
|
|
||||||
boldSwitch
|
boldSwitch
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user