Skip to content

Commit 548fe4a

Browse files
committed
chore: fix macOS build
1 parent 78835db commit 548fe4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sushitrain/Utils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ struct SheetButton: ToolbarContent {
11601160
case cancel
11611161
case add
11621162

1163-
@available(iOS 26.0, *)
1163+
@available(iOS 26.0, macOS 26.0, *)
11641164
var buttonRole: ButtonRole {
11651165
switch self {
11661166
case .done: return .close
@@ -1188,7 +1188,7 @@ struct SheetButton: ToolbarContent {
11881188

11891189
var body: some ToolbarContent {
11901190
ToolbarItem(placement: self.role.placement) {
1191-
if #available(iOS 26.0, *) {
1191+
if #available(iOS 26.0, macOS 26.0, *) {
11921192
Button(role: self.role.buttonRole, action: self.action)
11931193
.disabled(self.isDisabled || self.inEditMode)
11941194
}

0 commit comments

Comments
 (0)