SHORT QUESTIONS

How i will add Radial Gradient in SwiftUI?

RoundedRectangle(cornerRadius: 25.0) .fill( //radial gradient RadialGradient(gradient: Gradient(colors: [Color.red, Color.green, Color.yellow]), center: .center, startRadius: 5, endRadius:...

J
Joynal Abedin
4
RoundedRectangle(cornerRadius: 25.0)
       .fill(
           //radial gradient
           RadialGradient(gradient: Gradient(colors: [Color.red, Color.green, Color.yellow]), center: .center, startRadius: 5, endRadius: 500)
           
       )
       .frame(width: 300, height: 200)
J

Written by Joynal Abedin

Passionate about technology, code, and sharing knowledge.

0 Comments

Leave a Comment