Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func recursiveDescription(view: UIView, count: Int) {
- let subviews = view.subviews
- if subviews.count == 0 {
- return
- }
- var tabs = ""
- for i in 0..<count {
- tabs = tabs+"...."
- }
- for subview in subviews {
- print("\(tabs)\(subview)")
- recursiveDescription(view: subview, count: count+1 )
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement