Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Make annotation views accessible to VoiceOver #5235

Merged
merged 2 commits into from
Jun 3, 2016

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Jun 3, 2016

Corrected the accessibility frames of annotation views to match the views’ bounds instead of the bounds of the default annotation image (which could be empty if no default GL point annotation has been added).

Ideally, we’d figure out how to make the annotation view its own accessibility element, so that it or a subclass can specify a custom frame or Bézier path. But I’m punting on that for now to keep things simple. Annotation views are now their own accessibility elements. A subclass can define a custom accessibility path.

Fixes #5038.

/cc @boundsj @friedbunny

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS annotations Annotations on iOS and macOS or markers on Android labels Jun 3, 2016
@1ec5 1ec5 added this to the ios-v3.3.0 milestone Jun 3, 2016
@1ec5 1ec5 self-assigned this Jun 3, 2016
@boundsj
Copy link
Contributor

boundsj commented Jun 3, 2016

👍

1ec5 added 2 commits June 3, 2016 15:13
Corrected the accessibility frames of annotation views to match the views’ bounds instead of the bounds of the default annotation image (which could be empty if no default GL point annotation has been added).

Fixes #5038.
Annotation views now serve as their own accessibility elements. The developer’s own subclass of MGLAnnotationView can customize the view’s accessibility frame and/or path to more accurately reflect the visual hit target.
@1ec5 1ec5 force-pushed the 1ec5-a11y-annotation-view-5038 branch from a4eb5cb to 1f622fe Compare June 3, 2016 22:13
@1ec5 1ec5 changed the title Correct annotation view accessibility frame Make annotation views accessible to VoiceOver Jun 3, 2016
@1ec5
Copy link
Contributor Author

1ec5 commented Jun 3, 2016

I’ve redone the PR to use annotation views themselves as their own accessibility elements.

@friedbunny
Copy link
Contributor

👍

@1ec5 1ec5 merged commit 1f622fe into master Jun 3, 2016
@1ec5 1ec5 deleted the 1ec5-a11y-annotation-view-5038 branch June 3, 2016 22:34
1ec5 added a commit that referenced this pull request Jun 7, 2016
Fixed a write-without-read analyzer warning introduced in #5235.
1ec5 added a commit that referenced this pull request Jun 7, 2016
* [ios] Fixed crash in userLocationVerticalAlignment

Avoid creating an array with nil.

Fixes #5274.

* [ios] Fixed analyzer warning

Fixed a write-without-read analyzer warning introduced in #5235.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants