Gold and Silver metallic gradients in SwiftUI

Recently I added support for precious metals in Bitfolio and I wanted to display their card with a metallic effect, for that nice premium feeling!

Like any experienced developer, my first thought was to just look online, pretty sure someone already solved this problem and shared online.

It was harder than expected but eventually I found a japanese blog having a good example and a nice gradient and providing a handy extension.

--

--

Engineering Manager - Tokyo. I write about everything, from tech to daily stuff.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Francesco Pretelli

Engineering Manager - Tokyo. I write about everything, from tech to daily stuff.