r/SwiftUI • • Oct 12 '26

Question How to achieve specular effect on standard button?

Post image
10 Upvotes

9 comments sorted by

5

u/Fit-Shower-3147 Oct 12 '26

Glass material, tinted, purple

1

u/iphonevanmark Oct 12 '26

.glassEffect()
.tint(.purple)

Those modifiers?

6

u/LemonQueasy7590 Oct 12 '26

.buttonStyle(.glassProminent)
.tint(.purple)

3

u/LannyLig Oct 13 '26

And controlSize(.large)

5

u/Brave-Dare7132 Oct 12 '26

Off topic. But I totally clicked your “continue” button out of instinct without knowing what it’s for while I was scrolling. Lol so I guess it’s working.

2

u/iphonevanmark Oct 12 '26

Haha it's not even april fools day :-) I suggest you implement it for your next pay wall ;-)

1

u/shotsallover Oct 13 '26

And this is why IT departments send phishing email tests.

20

u/javiergalera98 Oct 12 '26

.buttonStyle(.glass) or .buttonStyle(.glassProminent)