Open bibin-jaimon opened 11 months ago
The kind of issues can be solved using recursion.
func printView(rootView: UIView, spacing: String = "") {
print("\(spacing)\(rootView.description)")
rootView.subviews.forEach({ view in
printView(rootView: view, spacing: spacing + " ")
})
}
Print subview in the below order