mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +00:00
Fixed compiler flag check for swift (#15654)
This commit is contained in:
parent
f654d1bf30
commit
437ed733f5
@ -50,7 +50,7 @@ extension CocoaView: HelperBarActionDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func orientationLockButtonTapped() {
|
func orientationLockButtonTapped() {
|
||||||
#if TARGET_OS_IOS
|
#if os(iOS)
|
||||||
shouldLockCurrentInterfaceOrientation.toggle()
|
shouldLockCurrentInterfaceOrientation.toggle()
|
||||||
if shouldLockCurrentInterfaceOrientation {
|
if shouldLockCurrentInterfaceOrientation {
|
||||||
let currentOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? UIInterfaceOrientation.portrait
|
let currentOrientation = UIApplication.shared.windows.first?.windowScene?.interfaceOrientation ?? UIInterfaceOrientation.portrait
|
||||||
|
Loading…
x
Reference in New Issue
Block a user