recipe
context-menu
Native .contextMenu: labeled, role-tagged buttons.
context-menulong-pressactionsmenuguidance

On iPad
The same installed source at a regular width. It adapts its layout without a separate design.


Install
Nothing to install
Copy the snippet below. The native API is the whole treatment.
Usage
TransactionRow(
title: Text("Mishmash Bakery"),
subtitle: Text("Today, 09:41"),
amount: Text(-8.75, format: .currency(code: "KWD")),
systemImage: "cup.and.saucer.fill"
)
.registryTone(.negative)
.contextMenu {
Button("Add note", systemImage: "square.and.pencil") { }
Button("Share", systemImage: "square.and.arrow.up") { }
Divider()
Button("Report", systemImage: "flag", role: .destructive) { }
}
.registryItem("context-menu")Why native is enough
.contextMenu + Buttons: symbols, roles. System renders Liquid Glass menu, preview, haptics. Long press isn't discoverable.
Accessibility contract
- Menus: VoiceOver actions rotor.
- Destructive: system style only.
- Actions MUST also exist visibly (detail screen).
Details
| Kind | recipe |
| Version | 0.1.2 |
| Platforms | iOS 26.0+ |
| Dependencies | transaction-row |
| Source | none (native guidance) |