mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-11-24 16:31:04 +00:00
ifdef around all visionOS-specific things
This commit is contained in:
parent
c1c7c93c6a
commit
3b4244e4e3
@ -8,6 +8,7 @@
|
||||
|
||||
import UIKit
|
||||
|
||||
#if os(visionOS)
|
||||
class KeyboardSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
@ -38,3 +39,4 @@ class KeyboardSceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
#if os(visionOS)
|
||||
struct PowerMenu: View {
|
||||
var body: some View {
|
||||
Menu() {
|
||||
@ -31,3 +32,4 @@ struct PowerMenu: View {
|
||||
#Preview {
|
||||
PowerMenu()
|
||||
}
|
||||
#endif
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
|
||||
#if os(visionOS)
|
||||
struct SettingsMenu: View {
|
||||
var body: some View {
|
||||
Menu() {
|
||||
@ -146,3 +146,5 @@ struct DisplayScalingFilter {
|
||||
let filter: CALayerContentsFilter
|
||||
let name: String
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user