Skip to content

Commit

Permalink
✨ Add long press to copy to debugger values
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaatttt committed Feb 1, 2024
1 parent bc62e84 commit ebf7728
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/AppcuesKit/Presentation/Debugger/Panel/DebugUI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,18 @@ internal enum DebugUI {
.foregroundColor(.secondary)
.multilineTextAlignment(.trailing)
}
}.ifLet(value) { view, value in
view.contextMenu {
Button {
UIPasteboard.general.string = value
} label: {
HStack {
Text("Copy")
Spacer()
Image(systemName: "doc.on.doc")
}
}
}
}
}
}
Expand Down

0 comments on commit ebf7728

Please sign in to comment.