Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created January 7, 2019 19:55
Show Gist options
  • Save yunustek/97a54d146154ce436bfb05c2af3743a4 to your computer and use it in GitHub Desktop.
Save yunustek/97a54d146154ce436bfb05c2af3743a4 to your computer and use it in GitHub Desktop.
func configureAccessibility(_ account: Account) {
photoButton.isAccessibilityElement = true
usernameLabel.isAccessibilityElement = true
pointButton.isAccessibilityElement = true
photoButton.accessibilityTraits = .button
usernameLabel.accessibilityTraits = .staticText
pointButton.accessibilityTraits = .button
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment