Skip to content

Instantly share code, notes, and snippets.

@laevandus
Created May 22, 2021 03:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/e94eb3dea5c54ae39d9a94a3680c9e15 to your computer and use it in GitHub Desktop.
Save laevandus/e94eb3dea5c54ae39d9a94a3680c9e15 to your computer and use it in GitHub Desktop.
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