Don't swizzle unnecessarily on iOS 17
This commit is contained in:
parent
b28792eb29
commit
1ca84a3b95
|
@ -198,7 +198,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@available(iOS, obsoleted: 17.0)
|
||||||
private func swizzlePresentationController() {
|
private func swizzlePresentationController() {
|
||||||
|
guard #unavailable(iOS 17.0) else {
|
||||||
|
return
|
||||||
|
}
|
||||||
var originalIMP: IMP?
|
var originalIMP: IMP?
|
||||||
let imp = imp_implementationWithBlock({ (self: UIPresentationController) in
|
let imp = imp_implementationWithBlock({ (self: UIPresentationController) in
|
||||||
let new = UITraitCollection(pureBlackDarkMode: self.presentingViewController.traitCollection.pureBlackDarkMode)
|
let new = UITraitCollection(pureBlackDarkMode: self.presentingViewController.traitCollection.pureBlackDarkMode)
|
||||||
|
|
Loading…
Reference in New Issue