We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4987cd3 commit b21f65cCopy full SHA for b21f65c
Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift
@@ -52,6 +52,16 @@ struct PromptToCodePanel: View {
52
Spacer(minLength: 50)
53
}
54
55
+ .overlay(alignment: .topTrailing) {
56
+ if !provider.code.isEmpty {
57
+ CopyButton {
58
+ NSPasteboard.general.clearContents()
59
+ NSPasteboard.general.setString(provider.code, forType: .string)
60
+ }
61
+ .padding(.trailing, 2)
62
+ .padding(.top, 2)
63
64
65
.overlay(alignment: .bottom) {
66
Group {
67
if provider.isResponding {
0 commit comments