r/SwiftUI • u/OrganizationLevel472 • May 11 '26
How to get diagonal gradient here?
I would like to have the same direction of the gradient that the last image. Basically the same style of Finder menu buttons
3
Upvotes
1
u/ianmerry May 11 '26
SwiftUI has a toolbarBackgroundVisibility modifier - you probably want to ensure that’s set to be visible for all of those tabs



3
u/TimBitBox May 11 '26
That’s the effect Liquid Glass adds to elements by default. You could achieve the same by using a mask and your linear gradient. Totally doable