Fixed compiler flag check for swift (#15654)

This commit is contained in:
yoshisuga 2023-08-29 00:30:52 -10:00 committed by GitHub
parent f654d1bf30
commit 437ed733f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ extension CocoaView: HelperBarActionDelegate {
}
func orientationLockButtonTapped() {
#if TARGET_OS_IOS
#if os(iOS)
shouldLockCurrentInterfaceOrientation.toggle()
if shouldLockCurrentInterfaceOrientation {
let currentOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? UIInterfaceOrientation.portrait