Edit Menus

Explore iOS Edit Menu behavior and custom actions interactively. Configure displayed items and custom actions to see changes reflected on the iPhone screen instantly.

9:41
●●●● WiFi 🔋
Edit Menu
Text Selection
The quick brown fox jumps over the lazy dog. Select this text to see the edit menu.
About Edit Menus
Edit menus appear when users select text or long-press on editable content. They provide quick access to common editing commands.
Active Items
⚠️ HIG Violation: Improper edit menu
📚 HIG Guidelines — Try It Yourself
✓ Do — Good Example
✗ Don't — Bad Example

✓ Do This

  • Show only relevant actions for the context
  • Support standard editing commands
  • Place custom actions after standard ones
  • Use clear and concise labels

✗ Don't Do This

  • Don't override standard edit menu behavior
  • Don't include too many custom actions
  • Don't remove standard actions users expect
  • Don't use edit menus for non-text content

👆 See the bad pattern in the iPhone preview above

Custom Actions
SwiftUI Code
TextField("Enter text", text: $text) .textSelection(.enabled)