changes for accessibility

This commit is contained in:
Kevin G Christiano 2020-09-08 09:22:25 -04:00
parent 42929810a1
commit 5326a3afd6
2 changed files with 2 additions and 3 deletions

View File

@ -57,9 +57,7 @@ open class Stack<T>: Container where T: (StackModelProtocol & MoleculeModelProto
/// Removes all stack items views from the view. /// Removes all stack items views from the view.
open func removeAllItemViews() { open func removeAllItemViews() {
for item in stackItems { stackItems.forEach { $0.removeFromSuperview() }
item.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. /// 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.

View File

@ -54,6 +54,7 @@ public extension Container {
/// Will be called only once. /// Will be called only once.
override func setupView() { override func setupView() {
super.setupView() super.setupView()
isAccessibilityElement = false
backgroundColor = .clear backgroundColor = .clear
} }