How do I change the text color of a SwiftUI swipeAction button?

718 Views Asked by At

I have a swipeAction in my SwiftUI list and I can't seem to change the color of the text. It is always white.

.swipeActions(edge: HorizontalEdge.leading, allowsFullSwipe: false) {
    Button {
            
    } label: {
        Text("July 3rd")
            .foregroundColor(.black)
    }
    .tint(Color(.systemGroupedBackground))
}

I've tried to set the button to PlainButtonStyle() but that also didn't work

0

There are 0 best solutions below