use role: .destructive when creating the button. eg
Button(role: .destructive) {
}
see https://www.hackingwithswift.com/books/ios-swiftui/creating-context-menus
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: