added helper function for labels

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-03-07 09:31:24 -06:00
parent 67fc629368
commit 16ad138559

View File

@ -21,4 +21,8 @@ extension ViewProtocol where Self: UIView {
setNeedsDisplay()
}
}
public func accessibilityLabel(for views: [UIView]) -> String? {
return views.compactMap({$0.accessibilityLabel}).joined(separator: " ")
}
}