skip to Main Content

Ios swift – Using custom ButtonStyle broke accessibilityShowButtonShapes overlay

I use custom ButtonStyle to change colour of button in pressed state Button(action: action) { bodyView } .buttonStyle(ListCellButtonStyle()) private struct ListCellButtonStyle: ButtonStyle { func makeBody(configuration: Configuration) -> some View { configuration.label .overlay( Rectangle() .foregroundColor(configuration.isPressed ? .statePressed : .clear) ) }…

VIEW QUESTION
Back To Top
Search