The `.tint(_:)` modifier does not work on conditionally rendered buttons
List { TextField(“…”, text: $aVariable) .swipeActions { if aVariable != “” { Button(action: { // … }, label: { Image(systemName: “xmark.bin.fill”) }) .tint(.red) } } } The .tint(.red) here should change the button background color to red, but the if statement outside the button seems to prevent the color change. How can this issue be […]