0PricingLogin
SwiftUI Academy · Lesson

Styling Buttons

Apply built-in button styles and custom looks.

Default Looks Are Fine

SwiftUI gives every button a sensible default style for the platform. But you can reshape its look in seconds with a single modifier. 🎨

The buttonStyle Modifier

Apply a built-in look with the buttonStyle modifier. It changes the whole appearance without you touching the label or action.

Button("Save") { save() }
    .buttonStyle(.bordered)

All lessons in this course

  1. Creating a Tappable Button
  2. Styling Buttons
  3. Running Code on Tap
  4. Disabling & Enabling Buttons
← Back to SwiftUI Academy