From acbf64dc7d7a9c678ee8c69619fce305358ebecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Kocur?= Date: Mon, 26 Sep 2022 12:14:55 +0200 Subject: [PATCH] Fix landscape rotation on iOS 16 --- Sources/ToastWindow.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ToastWindow.swift b/Sources/ToastWindow.swift index c258773..860c80c 100644 --- a/Sources/ToastWindow.swift +++ b/Sources/ToastWindow.swift @@ -183,7 +183,7 @@ open class ToastWindow: UIWindow { private func handleRotate(_ orientation: UIInterfaceOrientation) { let angle = self.angleForOrientation(orientation) - if self.shouldRotateManually { + if #unavailable(iOS 16.0), self.shouldRotateManually { self.transform = CGAffineTransform(rotationAngle: CGFloat(angle)) }