Selaa lähdekoodia

Fix ios build

Jezer Mejía 2 vuotta sitten
vanhempi
commit
c7702477fc

+ 2 - 0
Platform/Shared/VMConfigDisplayConsoleView.swift

@@ -74,6 +74,8 @@ struct VMConfigDisplayConsoleView_Previews: PreviewProvider {
         Form {
             VMConfigDisplayConsoleView(config: $config)
         }
+        #if os(macOS)
         .scrollable()
+        #endif
     }
 }

+ 2 - 0
Platform/Shared/VMConfigInfoView.swift

@@ -267,7 +267,9 @@ struct VMConfigInfoView_Previews: PreviewProvider {
     static var previews: some View {
         Group {
             VMConfigInfoView(config: $config)
+                #if os(macOS)
                 .scrollable()
+                #endif
             IconSelect() { _ in
                 
             }

+ 2 - 0
Platform/Shared/VMConfigInputView.swift

@@ -100,6 +100,8 @@ struct VMConfigInputView_Previews: PreviewProvider {
     
     static var previews: some View {
         VMConfigInputView(config: $config)
+            #if os(macOS)
             .scrollable()
+            #endif
     }
 }

+ 2 - 0
Platform/Shared/VMConfigSerialView.swift

@@ -99,6 +99,8 @@ struct VMConfigSerialView_Previews: PreviewProvider {
     
     static var previews: some View {
         VMConfigSerialView(config: $config, system: $system)
+            #if os(macOS)
             .scrollable()
+            #endif
     }
 }

+ 2 - 0
Platform/Shared/VMConfigSharingView.swift

@@ -56,6 +56,8 @@ struct VMConfigSharingView_Previews: PreviewProvider {
     
     static var previews: some View {
         VMConfigSharingView(config: $config)
+            #if os(macOS)
             .scrollable()
+            #endif
     }
 }

+ 2 - 0
Platform/Shared/VMConfigSystemView.swift

@@ -283,6 +283,8 @@ struct VMConfigSystemView_Previews: PreviewProvider {
     
     static var previews: some View {
         VMConfigSystemView(config: $config, isResetConfig: .constant(false))
+            #if os(macOS)
             .scrollable()
+            #endif
     }
 }