if my baseNavigationController overwrite like this :
public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return self.visibleViewController?.supportedInterfaceOrientations ?? .portrait
}
and your AlertController overwrite like this :
public override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return self.presentingViewController?.supportedInterfaceOrientations ?? super.supportedInterfaceOrientations
}
then visibleViewController of baseNavigationController isqual to SDCAlertController
and presentingViewController of AlertController isqual to baseNavigationController
circular reference