diff --git a/virtualization_view.m b/virtualization_view.m index 7b18012..7ff298b 100644 --- a/virtualization_view.m +++ b/virtualization_view.m @@ -185,8 +185,10 @@ - (instancetype)initWithVirtualMachine:(VZVirtualMachine *)virtualMachine view.capturesSystemKeys = YES; view.virtualMachine = _virtualMachine; #ifdef INCLUDE_TARGET_OSX_14 - // Configure the app to automatically respond to changes in the display size. - view.automaticallyReconfiguresDisplay = YES; + if (@available(macOS 14.0, *)) { + // Configure the app to automatically respond to changes in the display size. + view.automaticallyReconfiguresDisplay = YES; + } #endif _virtualMachineView = view;