I have a custom stack view with two buttons side by side. When VoiceOver is on, I want it to read these two buttons as some sort of tab, like "Button X Item 1 of 2" and "Button Y Item 2 of 2". Is it possible ?
My view controller have the following:
@IBOutlet weak var buttonAdd: UIButton!
@IBOutlet weak var buttonDelete: UIButton!
@IBOutlet weak var selector: CustomSelectorStackView!
I tried adding to my viewDidLoad:
accessibilityElements = [buttonAdd, buttonDelete]
and changing the trait of the buttons but no success.
What traits or other accessibility elements should I add to viewDidLoad so I can achieve the desired output.