Skip to content

Commit

Permalink
Fix a11y update when insert view (#1327)
Browse files Browse the repository at this point in the history
* fix SIMULATE_WEB_RESPONSE not imported #449

* Fix to make rangeMode update in right time

* remove uncessary assert

* Fix collection cell editing bug for iOS 9 & 10

* Revert "Fix collection cell editing bug for iOS 9 & 10"

This reverts commit 06e18a1.

* fix a11y update when insert view
  • Loading branch information
wsdwsd0829 authored and Adlai-Holler committed Feb 13, 2019
1 parent e762724 commit 5f1dc2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/Details/_ASDisplayView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,14 @@ - (void)didMoveToSuperview
}
}

- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index {
[super insertSubview:view atIndex:index];

#ifndef ASDK_ACCESSIBILITY_DISABLE
self.accessibilityElements = nil;
#endif
}

- (void)addSubview:(UIView *)view
{
[super addSubview:view];
Expand Down

0 comments on commit 5f1dc2b

Please sign in to comment.