diff --git a/pkg/apple/HelperBar/CocoaView+HelperBar.swift b/pkg/apple/HelperBar/CocoaView+HelperBar.swift index 3c7d58a427..e2632e9919 100644 --- a/pkg/apple/HelperBar/CocoaView+HelperBar.swift +++ b/pkg/apple/HelperBar/CocoaView+HelperBar.swift @@ -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