updated samplelabel

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-08-26 10:50:35 -05:00
parent 01923afe4a
commit 4820dc66cd
2 changed files with 6 additions and 4 deletions

View File

@ -65,10 +65,10 @@ public extension UIView {
}
return false
})
} else {
subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) }
}
subviews.forEach { elements.append(contentsOf: $0.accessibleElements(with: trait)) }
return elements
}
}

View File

@ -102,6 +102,8 @@ class LabelViewController: BaseViewController<Label> {
}.store(in: &subscribers)
}
let sampleLabel = Label()
override func 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 linkText = "inline text link"
let sampleLabel = Label()
sampleLabel.textStyle = .titleLarge
sampleLabel.text = fullText
@ -161,6 +162,7 @@ class LabelViewController: BaseViewController<Label> {
disabledSwitch.onChange = { [weak self] sender in
self?.component.isEnabled = !sender.isOn
self?.sampleLabel.isEnabled = !sender.isOn
}
boldSwitch