|
|
@ -26,7 +26,13 @@ struct VMConfigNetworkView: View { |
|
|
|
Form { |
|
|
|
Section(header: Text("Hardware"), footer: EmptyView().padding(.bottom)) { |
|
|
|
#if os(macOS) |
|
|
|
NetworkModeSection(config: config) |
|
|
|
if #available(macOS 11.3, *) { // requires macOS 11.3 inherited sandbox fix |
|
|
|
NetworkModeSection(config: config) |
|
|
|
} else { |
|
|
|
Toggle(isOn: $config.networkEnabled.animation(), label: { |
|
|
|
Text("Enabled") |
|
|
|
}) |
|
|
|
} |
|
|
|
#else |
|
|
|
Toggle(isOn: $config.networkEnabled.animation(), label: { |
|
|
|
Text("Enabled") |
|
|
|