gradient
Returns the standard gradient for the color self.
Declaration
var gradient: AnyGradient { get }Discussion
For example, filling a rectangle with a gradient derived from the standard blue color:
Rectangle().fill(.blue.gradient)Returns the standard gradient for the color self.
var gradient: AnyGradient { get }For example, filling a rectangle with a gradient derived from the standard blue color:
Rectangle().fill(.blue.gradient)