SyntaxFix
Write A Post
Hire A Developer
Questions
Extension for remove all subviews, it is quickly removed.
import Foundation import UIKit extension UIView { /// Remove allSubView in view func removeAllSubViews() { self.subviews.forEach({ $0.removeFromSuperview() }) } }