From 5326a3afd6192ad1c862e579a22014449554ad99 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Tue, 8 Sep 2020 09:22:25 -0400 Subject: [PATCH] changes for accessibility --- MVMCoreUI/Atomic/Organisms/Stack.swift | 4 +--- MVMCoreUI/Containers/Views/Container.swift | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/MVMCoreUI/Atomic/Organisms/Stack.swift b/MVMCoreUI/Atomic/Organisms/Stack.swift index 5957f4c9..194eff48 100644 --- a/MVMCoreUI/Atomic/Organisms/Stack.swift +++ b/MVMCoreUI/Atomic/Organisms/Stack.swift @@ -57,9 +57,7 @@ open class Stack: Container where T: (StackModelProtocol & MoleculeModelProto /// Removes all stack items views from the view. open func removeAllItemViews() { - for item in stackItems { - item.removeFromSuperview() - } + stackItems.forEach { $0.removeFromSuperview() } } /// A convenience function for when the stackItems are containers and we want to update them based on the contained molecules models. If model is nil, stackItem is set to gone. Restacks if necessary. diff --git a/MVMCoreUI/Containers/Views/Container.swift b/MVMCoreUI/Containers/Views/Container.swift index 8c95f110..6cd72e95 100644 --- a/MVMCoreUI/Containers/Views/Container.swift +++ b/MVMCoreUI/Containers/Views/Container.swift @@ -54,6 +54,7 @@ public extension Container { /// Will be called only once. override func setupView() { super.setupView() + isAccessibilityElement = false backgroundColor = .clear }