How would I loop through all UIButtons in my view in Swift? I would want to set all the titles to \"\", but my for-loop in Swift is giving an error.
UIButtons
\"\"
Swift 4:
let subviewButtons = self.view.subviews.filter({$0.isKind(of: UIButton.self)}) for button in subviewButtons { //do something }