Help debugging a weird issue in my magic tap implementation
Help debugging a weird issue in my magic tap implementation
- Subject: Help debugging a weird issue in my magic tap implementation
- From: Vincenzo Rubano <email@hidden>
- Date: Mon, 16 Apr 2018 16:24:07 +0200
Hi all,
background: in my app, I want to perform a certain task when a VoiceOver user
performs the magic tap gesture. The accessibilityPerformMagicTap() is
implemented in a view controller that is embedded inside a
UINavigationController. In the implementation of the method I want to control
the playback of an AVPlayer. This results into an item of the UIToolbar managed
by the view controller changing depending on the fact that the playback has
been paused or resumed. The toolbar items are displayed by populating the
toolbarItems array of the viewController, thus populating the toolbar of the
UINavigationController. So far so good, or at least I hope so.
Issue: Now the fun part begins. If I place the VoiceOver focus on any element
of the VC other than the ones in the toolbar the magic tap works as expected.
On the other hand, if the focus is placed on one of the toolbar items the
accessibilityPerformMagicTap() method in my VC is never called and the gesture
is handled by the system. Do you have any hints on how I could understand
what’s going wrong?
I’ve already tried posting UIAccessibilityScreenChangedNotification or
UIAccessibilityLayoutChangedNotification after replacing the toolbar item, but
it didn’t solve the issue. The app is written in Swift 4.1 and linked against
the iOS 11.3 SDK. The toolbar items are adjusted by invoking the
setToolbarItems(_, animated:) method provided by UIViewController.
Thanks in advance for your support
Vincenzo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden