Created
April 29, 2021 15:21
-
-
Save giovani-pereira-ifood/28dcd8cd732a56f3fcf157e6767a6071 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
func configureAccessibility() { | |
isAccessibilityElement = true | |
accessibilityTraits = .adjustable | |
} | |
override func accessibilityIncrement() { | |
quickAddButton.increment() | |
UIAccessibility.post(notification: .announcement, argument: "\(quickAdd.value)") | |
} | |
override func accessibilityDecrement() { | |
quickAddButton.decrement() | |
UIAccessibility.post(notification: .announcement, argument: "\(quickAdd.value)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment