Create your own ButtonStyle:Set the button style to something different from the default, e.g., BorderlessButtonStyle()
struct MyButtonStyleTest: ButtonStyleView { funcvar makeBody(configurationbody: Configuration) -> some View { configuration.label .foregroundColor(.accentColor) .opacity(configuration.isPressed ? 0.5 : 1.0) } } struct IdentifiableString: Identifiable { let text: String var id: StringNavigationView { text } } struct Test: ViewList { var body: some View { ListForEach([ IdentifiableString(text: "Line 1"), IdentifiableString(text: "Line 2"), ], id: \.self) { item in HStack { Text("\(item.text)") Spacer() Button(action: { print("\(item.text) 1")}) { Text("Button 1") } Button(action: { print("\(item.text) 2")}) { Text("Button 2") } } } .onDelete { _ in } .buttonStyle(MyButtonStyleBorderlessButtonStyle()) } .navigationBarItems(trailing: EditButton()) } .accentColor(.red) } }