---
title: "Button Styles | Explore SwiftUI"
description: "A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy"
canonical_url: "https://exploreswiftui.com/library/button/button-styles"
meta:
  author: "Explore SwiftUI"
  "og:description": "A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy"
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Button%2BStyles%2Cdescription_A%2Btype%2Bthat%2Bapplies%2Bstandard%2Binteraction%2Bbehavior%2Band%2Ba%2Bcustom%2Bappearance%2Bto%2Ball%2Bbuttons%2Bwithin%2Ba%2Bview%2Bhierarchy%2Ccategory_Button%2Cimage_~L2FwaS9pbWFnZXMvMzEvdmFyaWFudHMvMzM5P3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L2J1dHRvbi9idXR0b24tc3R5bGVzIg%2Cs_SwhNp9c2BmmBKQHh.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Button Styles | Explore SwiftUI"
  "twitter:description": "A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy"
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Button%2BStyles%2Cdescription_A%2Btype%2Bthat%2Bapplies%2Bstandard%2Binteraction%2Bbehavior%2Band%2Ba%2Bcustom%2Bappearance%2Bto%2Ball%2Bbuttons%2Bwithin%2Ba%2Bview%2Bhierarchy%2Ccategory_Button%2Cimage_~L2FwaS9pbWFnZXMvMzEvdmFyaWFudHMvMzM5P3Y9MTc5MDA3MzQ3ODg0MiZyPTImdz0xMjgwJnE9ODUmZj1qcGVn%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L2J1dHRvbi9idXR0b24tc3R5bGVzIg%2Cs_SwhNp9c2BmmBKQHh.png"
  "twitter:title": "Button Styles | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=31)

# **Button Styles**

A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy

![Button Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/31/variants/339?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 13.0+ iPadOS 13.0+ macOS 10.15+ watchOS 6.0+ tvOS 13.0+ visionOS 1.0+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/buttonstyle)

```
HStack {
    Button("Tap Me", action: action)
        .buttonStyle(.plain)
    Button("Tap Me", action: action)
        .buttonStyle(.borderless)
    Button("Tap Me", action: action)
        .buttonStyle(.bordered)
    Button("Tap Me", action: action)
        .buttonStyle(.borderedProminent)
}
```

### **Found an issue or have a suggestion?**

Created: May 30, 2025Updated: December 27, 2025

![Connect Wizard](https://exploreswiftui.com/_ipx/f_webp&q_80&s_48x48/images/connect-wizard-icon.png)

**Connect Wizard**

**Unlock insights App Store Connect doesn’t show you.**

[** Get Started **](https://apps.apple.com/app/apple-store/id6747314580?pt=121213751&ct=Explore%20SwiftUI%20Banner&mt=8)

### **More Button Components **

[**View all **](https://exploreswiftui.com/library/button)

![Button Sizing - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/190/variants/3?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button Sizing**

The preferred sizing behavior of buttons in the view hierarchy.

![Role Button With Default Label - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/134/variants/424?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Role Button With Default Label**

Creates a button that displays a default label.

![Glass Button Styles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/87/variants/314?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Glass Button Styles**

A button style that applies glass border artwork based on the button’s context

![RenameButton - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/37/variants/213?v=1790073478842&r=2&w=412&q=75&f=webp)

### **RenameButton**

A button that triggers a standard rename action

![EditButton - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/36/variants/239?v=1790073478842&r=2&w=412&q=75&f=webp)

### **EditButton**

A button that toggles the edit mode environment value

![PasteButton - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/35/variants/235?v=1790073478842&r=2&w=412&q=75&f=webp)

### **PasteButton**

A system button that reads items from the pasteboard and delivers it to a closure.

![Button Tint - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/34/variants/408?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button Tint**

Sets the buttons tint color

![Button Roles - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/33/variants/718?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button Roles**

A value that describes the purpose of a button.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Item Sheet - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/136/variants/448?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Item Sheet**

Presents a sheet using the given item as a data source for the sheet’s content. On watchOS, sheets are displayed as fullScreenCover.

![Product View - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/202/variants/509?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Product View**

Creates a view to load and merchandise an individual product from the App Store.

![Message Item Alert - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/198/variants/381?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Message Item Alert**

Presents an alert with a message using the given data to produce the alert’s content and a localized string key for a title.

![Store Cancellation Button - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/218/variants/134?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Store Cancellation Button**

A type of button that people use to dismiss the current store presentation. It is displayed by default and only works in a sheet.

![Prioritize Sheet Content Scrolling - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/141/variants/466?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Prioritize Sheet Content Scrolling**

Configures the behavior of swipe gestures on a presentation. PresentationContentInteraction.scrolls prioritizes scrolling the content over resizing the sheet.

![Overlay Arrangement ZIndex - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/252/variants/1906?v=1792480289764&r=2&w=412&q=75&f=webp)

### **Overlay Arrangement ZIndex**

The z-index for a view within an overlay arrangement view.

![Custom Labeled Content - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/152/variants/494?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Labeled Content**

Creates a standard labeled element, with a view that conveys the value of the element and a label.

![Semantic Colors - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/8/variants/51?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Semantic Colors**

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/button/button-styles#webpage","@type":"WebPage","dateModified":"2025-12-27T17:38:24.830Z","datePublished":"2025-05-30T13:48:41.493Z","description":"A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy","name":"Button Styles","url":"https://exploreswiftui.com/library/button/button-styles","breadcrumb":{"@id":"https://exploreswiftui.com/library/button/button-styles#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/button/button-styles"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/button/button-styles#article","dateModified":"2025-12-27T17:38:24.830Z","datePublished":"2025-05-30T13:48:41.493Z","description":"A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy","headline":"Button Styles","inLanguage":"en-US","name":"Button Styles","thumbnailUrl":"https://exploreswiftui.com/api/images/31/variants/339?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/button/button-styles","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@type":"WebSite","name":"Explore SwiftUI","url":"https://exploreswiftui.com"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/button/button-styles#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/button/button-styles#/schema/software-source-code/1","@type":"SoftwareSourceCode","codeRepository":"https://developer.apple.com/documentation/swiftui/buttonstyle","codeSampleType":"full example","description":"A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy","name":"Button Styles SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"HStack {\n    Button(\"Tap Me\", action: action)\n        .buttonStyle(.plain)\n    Button(\"Tap Me\", action: action)\n        .buttonStyle(.borderless)\n    Button(\"Tap Me\", action: action)\n        .buttonStyle(.bordered)\n    Button(\"Tap Me\", action: action)\n        .buttonStyle(.borderedProminent)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Button"},{"@type":"Thing","name":"Button Styles"}]},{"@id":"https://exploreswiftui.com/library/button/button-styles#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Button","item":"https://exploreswiftui.com/library/button","position":2},{"@type":"ListItem","name":"Button Styles","item":"https://exploreswiftui.com/library/button/button-styles","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/31/variants/339?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/31/variants/339?v=1790073478842&r=2"}]}
```