#ButtonStyle
.buttonStyle(.ladyFingers)
June 9, 2025 at 9:35 PM
Using #SwiftUI’s UIGestureRecognizerRepresentable and Anchor Preferences, you can build a ButtonStyle that is triggered by a long-press in a parent view in addition to regular taps.

This enables building custom menus like this that allow triggering an action with a single long press.
January 19, 2025 at 9:46 PM
Would also accept .buttonStyle(.kitKatBar)
June 9, 2025 at 9:40 PM
GlassProminent ButtonStyle, where are you? 😭 #WWDC #iOS26 #LiquidGlass
June 18, 2025 at 1:40 PM
List automatically decors NavigationLinks with a trailing chevron. To achieve this behaviour in ScrollView, we can implement a custom ButtonStyle and apply it to the whole ScrollView.
swiftwithmajid.com/2026/04/06/b...
April 10, 2026 at 10:31 AM
Finally found a way to "subclass" system `ButtonStyles`, in case you need them but with small adjustments (i.e., making them span the full width).
August 14, 2025 at 11:59 AM
Solution ⬇️

buttonStyle(.glass) = .glassEffect(.regular.interactive(), in: .circle)
Is it possible to replicate the style of a liquid glass toolbar button in #SwiftUI?

Using buttonStyle(.glass) + buttomBorderShape(.circle) shows another circle within the button when touched 🫤

And glassEffect(in: .circle) doesn’t render the same visual effect when touched 😞
October 17, 2025 at 1:08 PM
A few extra buttonStyle(.plain) and... not bad for a literally first-pass attempt.
Much to be done, of course, but it's at least vaguely usable!
November 28, 2024 at 9:33 AM
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
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
❓How do I create links with different button styles in SwiftUI?
💡Use the Link component with buttonStyle modifiers like .bordered and .borderedProminent, plus shape modifiers like .capsule or .roundedRectangle for beautiful, tappable links.
👉Free #SwiftUI picture book at bigmtn.studio
May 7, 2026 at 2:06 PM
The new .glassProminent buttonStyle finally exists. While the new .glass style was available from beta 1, this was not the case for its prominent companion. A nice add-on, it also accepts custom tints.
July 9, 2025 at 5:46 AM
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
In developing this UI framework, not only did I learn a lot about #SwiftUI containers, but I was also able to create custom styles using the ButtonStyle protocol as a reference.
It will be of help to you if you want to implement custom styles in your views in the future.
I created a UI framework called #ArticleUI.
It can be used in the same way as #SwiftUI 's List, and I tried to minimize differences in appearance between platforms.
How about creating UI for help, acknowledgements, etc.?

github.com/KC-2001MS/Ar...
October 8, 2024 at 9:56 AM
Does it not change anything if you add the same .buttonStyle(.borderless) to the Menu? Seems like it should work this way…
January 8, 2024 at 10:58 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
SwiftUI Tip 💡

Apply the Liquid Glass design to your buttons using .glass or .glassProminent with the buttonStyle() modifier.

Learn iOS development visually:
learnandcodewithenid.com
July 9, 2025 at 2:28 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
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
I think you might be fighting with the way .glassEffect() works, which is layering glass effects on top of one the system already drew.

.sharedBackgroundVisibility(.hidden) might suppress the system's glass effect, but you might want to experiment with:

.buttonStyle(.glassProminent)
.tint(.red)
June 25, 2026 at 3:30 PM
Is it possible to replicate the style of a liquid glass toolbar button in #SwiftUI?

Using buttonStyle(.glass) + buttomBorderShape(.circle) shows another circle within the button when touched 🫤

And glassEffect(in: .circle) doesn’t render the same visual effect when touched 😞
October 17, 2025 at 12:21 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
Do any SwiftUI experts know how to solve custom liquid glass button shapes such that the highlight on tap doesn't escape the button shape like this?
August 17, 2025 at 3:48 PM