We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de436e1 commit f1845daCopy full SHA for f1845da
Sources/UIImageView_Extensions.swift
@@ -10,7 +10,9 @@ extension UIImageView {
10
}
11
12
private var vc:UIViewController? {
13
- return UIApplication.shared.keyWindow?.rootViewController
+ guard let rootVC = UIApplication.shared.keyWindow?.rootViewController
14
+ else { return nil }
15
+ return rootVC.presentedViewController != nil ? rootVC.presentedViewController : rootVC
16
17
18
public func setupImageViewer(
0 commit comments