Last active
June 1, 2021 22:29
-
-
Save RinniSwift/d7ec60f2427dc9b9f256194a22cdaf77 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let element = UIAccessibilityElement(accessibilityContainer: self) | |
element.accessibilityLabel = [titleLabel.text, subtitleLabel.text].compactmap { $0 }.joined(seperator: ", ") | |
element.accessibilityFrameInContainerSpace = titleLabel.frame.union(subtitleLabel.frame) | |
accessibilityElements = [element, bottomView, button].compactMap { $0 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment