As far as I know, this would work in Objective-C:
self.window.rootViewController.class == myViewController
How can I check if the current v
Check that way that worked better for me What is .self
if ((self.window.rootViewController?.isKind(of: WebViewController.self))!) { //code }