Skip to content

Instantly share code, notes, and snippets.

Last active Aug 10, 2021
What would you like to do?
func iterateOverViewAndSubviews(view: UIView, block: (UIView) -> Void) {
for subview in view.subviews {
iterateOverViewAndSubviews(view: subview, block: block)
func runCheckers() {
if let keyWindow = UIApplication.shared.keyWindow {
iterateOverViewAndSubviews(view: keyWindow) { (view) in
if checkersFail() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment