#ButtonStyle
Wanted a filled, tinted Share button in a SwiftUI toolbar on iOS 26. .glassProminent did nothing there.

What worked in ComingUp:

.buttonStyle(.borderedProminent)
.tint(.brandAccent)

In a toolbar, iOS 26 draws that as tinted Liquid Glass. Older versions get a filled capsule.

#SwiftUI #iOSDev
November 11, 2026 at 10:00 AM
My updated Button Roles example shows significant inconsistencies across platforms in SwiftUI, especially in buttonStyle, buttonBorderShape, and role.

Explore it yourself here:
exploreswiftui.com/library/butt...

FB24397477

#iOSDev #SwiftUI
Button Roles - SwiftUI Component | Explore SwiftUI
A value that describes the purpose of a button. Learn how to use Button Roles in SwiftUI with visual code examples for iOS, macOS, watchOS, tvOS, and visionOS.
exploreswiftui.com
August 19, 2026 at 2:34 PM
For future reference, if you want to have multiple Buttons/NavigationLinks in a Form/List row, you can use .buttonStyle(.plain) on one or all of them!

This disables the default whole-row tap target behavior (which causes this funky stuff)
March 9, 2025 at 2:20 AM
Even better. What in the actual fuck
March 14, 2024 at 2:56 PM
I was bitten by this #SwiftUI bug with swipeActions not working, and wrote about it so that when I inevitably do the same thing again in a few months I can find this article www.neilmacy.co.uk/blog/swiftui...
Be Careful Using SwiftUI's buttonStyle Modifier With List swipeActions | Neil Macy
If you use `swipeActions` in your SwiftUI List, be careful that you don't apply a custom `buttonStyle` to it.
www.neilmacy.co.uk
February 10, 2025 at 10:01 PM
daztrend.com/products/hig...

🚨 Cyber Monday Mega Sale! 🚨

💥 Up to 70% OFF + FREE SHIPPING! 💥

🎁 Shop your favorite deals today and save big on must-have items!
#CyberMonday #ShopNow #FreeShipping #HolidayDeals #MondayMotivation #London #Scotland #UK #USA #ShopSmart
HIGH STREET 2024 New Fashion Designer Blazer Dress Women's Long Sleeve
SPECIFICATIONSBrand Name: O'ZACKETElasticity: Non StrechSleeve Style: regularFabric Type: POLYESTERPattern Type: SolidFit Type: SlimSilhouette: PencilNeckline: NotchedDecoration: ButtonStyle: High Str...
daztrend.com
December 2, 2024 at 11:51 AM
i actually like the way toolbars look like in macOS 26. the big-sur era made everything too monochrome. i can actually put some color with a .glass or a .borderedProminent buttonStyle with these
February 14, 2026 at 9:35 PM
i actually like the way toolbars look like in macOS 26. the big-sur era made everything too monochrome. i can actually put some color with a .glass or a .borderedProminent buttonStyle with these
February 14, 2026 at 11:04 PM
Everything about buttons in #Flutter
Flutter. Everything about buttons
I started writing the “ButtonStyle cheat sheet” article, and realized that there is a lot about Flutter buttons before ButtonStyle.
medium.com
April 25, 2025 at 2:21 PM
I'll take "Radar's that fit in a Bluesky post" for 100, Alex:

```
struct WTF: View {
var body: some View {
TabView { Tab { Text("First") } }
.tabViewBottomAccessory {
Button("Press me") { print("pressed") }
.buttonStyle(.glassProminent)
}
}
}
```
September 9, 2025 at 10:26 PM
`hoursLostToDumbSwiftUIMagic++`

TIL a button in a `tabViewBottomAccessory` with a `buttonStyle` applied to it will cause AttributeGraph to cycle, so an `onTapGesture` it is!
September 9, 2025 at 10:15 PM
When implementing a ButtonStyle, is there really no way to detect the "automatic" border shape style and provide a customized default?

My memory was that this was exposed thru the environment, but apparently it's via a Shape extension (ButtonBorderShape.buttonShape), but that appears to always […]
Original post on social.axiixc.com
social.axiixc.com
October 11, 2025 at 11:44 PM
🕒 [SwiftUI] `buttonStyle`を支える技術
by Miwa / Ensan
https://zenn.dev/en3_hcl/articles/f8eabadaa966eb
[SwiftUI] `buttonStyle`を支える技術
zenn.dev
November 8, 2023 at 1:18 PM
🕒 [SwiftUI] `buttonStyle`を支える技術
by Miwa / Ensan
https://zenn.dev/en3_hcl/articles/f8eabadaa966eb
[SwiftUI] `buttonStyle`を支える技術
zenn.dev
November 7, 2023 at 7:13 AM
Would also accept .buttonStyle(.kitKatBar)
June 9, 2025 at 9:40 PM
.buttonStyle(.ladyFingers)
June 9, 2025 at 9:35 PM
View (2/2)

.buttonStyle(.borderless)
.popover(isPresented: $showDatePop, attachmentAnchor: .point(.trailing),arrowEdge: .trailing) {
DatePicker("Date", selection: $selectedDate, displayedComponents: .date)
.datePickerStyle(.graphical)
.labelsHidden()
.padding()
}
}
June 10, 2025 at 3:30 PM
Incidentally, I am using the .buttonStyle(.borderless) on the buttons. If I put them into the list (NOT specifically when in edit mode) they appear and work fine when not in edit mode, but that isn't what I'm going for here. I wanted them to only appear (and function) when in edit mode.
March 12, 2025 at 11:16 PM
Using ButtonStyle is broken in Swift 6 and iOS 18 because configuration.isPressed doesn’t correctly respond to quick taps. You need to write a dragGesture 0 modifier.
January 30, 2025 at 3:17 PM
ButtonStyle and the isPressed option is horribly broken in Swift 6 and iOS 18. As such, if you want responsive buttons you need to use dragGesture. #swiftui #iosdev
January 22, 2025 at 3:26 PM
I noticed something odd with iOS 26 and the sheet I'm using to display my paywall.

The only thing in it is a cancel button but the text is getting clipped. Happens also if I use .topBarLeading.

If I remove the placement the word cancel is shown just fine but the placement moves to the top right. 🤔
July 26, 2025 at 11:08 PM
I'm very behind, as usual, and am trying out Liquid Glass styling for the first time.

Even if I strip down my toolbar to only have the simplest elements I can't get it to compile if I'm using .sharedBackgroundVisibility.

I get the infamous "unable to type-check...". 🤔

#SwiftUI
July 22, 2025 at 2:44 PM