Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- extension UIView {
- func printSubView(){
- printSubViewH(self, "")
- }
- private func printSubViewH(_ view: UIView, _ str: String){
- print(str + view.description)
- let nextstr = str + " "
- for view in view.subviews{
- printSubViewH(view, nextstr)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement