if #available mac

Removes if #available for anything less than macOS 11
This commit is contained in:
Stuart Breckenridge
2022-01-22 20:55:09 +08:00
parent 7a670516fb
commit b08d9dfe73
17 changed files with 288 additions and 572 deletions

View File

@@ -23,11 +23,7 @@ struct SidebarCellAppearance: Equatable {
textFieldFontSize = 11
case .large:
imageSize = CGSize(width: 22, height: 22)
if #available(macOS 11.0, *) {
textFieldFontSize = 15
} else {
textFieldFontSize = 13
}
textFieldFontSize = 15
default:
imageSize = CGSize(width: 19, height: 19)
textFieldFontSize = 13