diff --git a/Platform/Shared/VMWizardOSWindowsView.swift b/Platform/Shared/VMWizardOSWindowsView.swift index dd1573e3c..4d5c61e09 100644 --- a/Platform/Shared/VMWizardOSWindowsView.swift +++ b/Platform/Shared/VMWizardOSWindowsView.swift @@ -39,12 +39,15 @@ struct VMWizardOSWindowsView: View { Text("Image File Type") } .onAppear { - if wizardState.windowsBootVhdx != nil { - useVhdx = true - } else { - #if arch(arm64) - useVhdx = wizardState.useVirtualization - #endif + // SwiftUI bug: on macOS 11, onAppear() is called every time the check box is clicked + if #available(iOS 15, macOS 12, *) { + if wizardState.windowsBootVhdx != nil { + useVhdx = true + } else { + #if arch(arm64) + useVhdx = wizardState.useVirtualization + #endif + } } }