ButtonStyle
protocol?Suggested approach: SwiftUI provides several built-in button styles depending on which platform you're targetting, and the ButtonStyle
protocol allows us to create new button styles that can be reused across our apps to get consistent designs.
For bonus points, compare and contrast ButtonStyle
with PrimitiveButtonStyle
.
Estimated difficulty: Intermediate
Link copied to your pasteboard.