0

The following code will generate a context menu with black label on it.

enter image description here

But I'm looking for a way to creat effect like the image below. The "Remove App" with red colour. The foregroundColor modifier does not work in this case.

enter image description here

Legolas Wang
  • 1,951
  • 1
  • 13
  • 26
  • 1
    Not possible with SwiftUI (yet). See [How to configure ContextMenu buttons for delete and disabled in SwiftUI?](https://stackoverflow.com/q/58467846/8697793) – pawello2222 Jan 04 '21 at 21:53
  • You can custom label like [this](https://swiftwithmajid.com/2020/12/23/labels-in-swiftui/) – Joannes Jan 06 '21 at 10:18

0 Answers0