79459192

Date: 2025-02-22 07:16:42
Score: 1
Natty:
Report link

func getPresentedViewControllers(from rootViewController: UIViewController? = UIApplication.shared.windows.first?.rootViewController) -> [UIViewController] { var viewControllers: [UIViewController] = [] var currentViewController = rootViewController

while let presented = currentViewController?.presentedViewController {
    viewControllers.append(presented)
    currentViewController = presented
}

return viewControllers

}

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Arslan yahya