We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4507304 commit bc4ad25Copy full SHA for bc4ad25
1 file changed
Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift
@@ -131,12 +131,18 @@ struct ChatPanelInputArea: View {
131
Button(action: {
132
chat.clear()
133
}) {
134
- Image(systemName: "eraser.line.dashed.fill")
135
- .padding(8)
136
- .background(
137
- .regularMaterial,
138
- in: RoundedRectangle(cornerRadius: 8, style: .continuous)
139
- )
+ Group {
+ if #available(macOS 13.0, *) {
+ Image(systemName: "eraser.line.dashed.fill")
+ } else {
+ Image(systemName: "trash.fill")
+ }
140
141
+ .padding(8)
142
+ .background(
143
+ .regularMaterial,
144
+ in: RoundedRectangle(cornerRadius: 8, style: .continuous)
145
+ )
146
}
147
.buttonStyle(.plain)
148
.xcodeStyleFrame()
0 commit comments