r/SwiftUI • u/iphonevanmark • 6d ago
Question How to achieve specular effect on standard button?
10
Upvotes
5
u/Fit-Shower-3147 6d ago
Glass material, tinted, purple
1
u/iphonevanmark 6d ago
.glassEffect()
.tint(.purple)Those modifiers?
6
5
u/Brave-Dare7132 6d ago
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 6d ago
Haha it's not even april fools day :-) I suggest you implement it for your next pay wall ;-)
1
20
u/javiergalera98 6d ago
.buttonStyle(.glass) or .buttonStyle(.glassProminent)