Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
struct RoundedRowButtonStyle: ButtonStyle {
@ViewBuilder func makeBody(configuration: Self.Configuration) -> some View {
configuration.label
.frame(maxWidth: .infinity)
.padding(8)
.background(Color.accentColor)
.cornerRadius(8)
.foregroundColor(.white)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment