init(colors:)
Creates a gradient from an array of colors.
Declaration
init(colors: [Color])Discussion
The gradient synthesizes its location values to evenly space the colors along the gradient.
Creates a gradient from an array of colors.
init(colors: [Color])The gradient synthesizes its location values to evenly space the colors along the gradient.