From 5f1dc2bc6272532707261341db6c09a92c5c821b Mon Sep 17 00:00:00 2001 From: Max Wang Date: Tue, 12 Feb 2019 17:03:36 -0800 Subject: [PATCH] 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 06e18a10596622ff8a68835c95a23986d7bf61ea. * fix a11y update when insert view --- Source/Details/_ASDisplayView.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/Details/_ASDisplayView.mm b/Source/Details/_ASDisplayView.mm index 4e4126123..0bf1514e3 100644 --- a/Source/Details/_ASDisplayView.mm +++ b/Source/Details/_ASDisplayView.mm @@ -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];