0

I am responsible for the integration of accessibility for an iOS application.

And I am having difficulty in changing the focus direction from LTR to RTL.

How can i do it in Xcode?

Tamer Shlash
  • 9,314
  • 5
  • 44
  • 82
Moran
  • 435
  • 2
  • 6
  • 20
  • What do you mean by direction of focus? – Saheb Roy Jan 15 '18 at 08:27
  • @SahebRoy When a user with disability need to reach to a components of the app (like buttons\links\inputs...) only by focus them, with sweeping with the finger to right\left. I need to change that the focus will be start frrm ight and not from the left.o – Moran Jan 15 '18 at 08:39
  • What do u mean by focusing on them? – Saheb Roy Jan 15 '18 at 08:47

1 Answers1

0

You simply need to create an array for accessibile items. for eg: i have 2 outlets say: leftbutton and rightbutton.

Then in your viewDidLoad() add this:

UIAccessibilityPostNotification(UIAccessibilityScreenChangedNotification, rightbutton)

self.accessibilityElements = [rightbutton, leftbutton]
Hexfire
  • 5,945
  • 8
  • 32
  • 42