Skip to content

Commit 5f1dc2b

Browse files
wsdwsd0829Adlai-Holler
authored andcommitted
Fix a11y update when insert view (#1327)
* 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
1 parent e762724 commit 5f1dc2b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/Details/_ASDisplayView.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,14 @@ - (void)didMoveToSuperview
276276
}
277277
}
278278

279+
- (void)insertSubview:(UIView *)view atIndex:(NSInteger)index {
280+
[super insertSubview:view atIndex:index];
281+
282+
#ifndef ASDK_ACCESSIBILITY_DISABLE
283+
self.accessibilityElements = nil;
284+
#endif
285+
}
286+
279287
- (void)addSubview:(UIView *)view
280288
{
281289
[super addSubview:view];

0 commit comments

Comments
 (0)