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 }