How can I get grand gran parent view of my current self
UIView
, currently I'm using self.superview?.superview?.superview?.superview?.superview?.superview?
It looks kind of weird, instead of using above syntax is their any other way to get main UIView
otherwise how can i preventing this optional chaining with guard
?