macos: change our minimum version to macOS 13

macOS 12 is officially EOL by Apple and the project only supports
officially supported versions of macOS. Once publicly released, users on
older macOS versions will have to use older released builds.
This commit is contained in:
Mitchell Hashimoto
2024-10-09 14:35:23 -07:00
parent 2f009b7262
commit eec77e271c
12 changed files with 24 additions and 126 deletions

View File

@@ -29,11 +29,7 @@ extension NSScreen {
// We need to see if our visible frame height is less than the full
// screen height minus the menu and notch and such.
let menuHeight = NSApp.mainMenu?.menuBarHeight ?? 0
let notchInset: CGFloat = if #available(macOS 12, *) {
safeAreaInsets.top
} else {
0
}
let notchInset: CGFloat = safeAreaInsets.top
let boundaryAreaPadding = 5.0
return visibleFrame.height < (frame.height - max(menuHeight, notchInset) - boundaryAreaPadding)