How can I get a grand parental view of my current one self UIView, currently I'm usingself.superview?.superview?.superview?.superview?.superview?.superview?
It looks weird, instead of using the syntax above, it's their every other way to get the main UIViewone, otherwise how can I prevent this extra chain with guard?
user4911813
source
share