static func linearGradient (colors: [Color], startPoint : UnitPoint , endPoint : UnitPoint ) -> LinearGradient
A linear gradient defined by a collection of colors.
Available when
Self
is LinearGradient
.static func linearGradient (stops: [Gradient.Stop], startPoint : UnitPoint , endPoint : UnitPoint ) -> LinearGradient
A linear gradient defined by a collection of color stops.
Available when
Self
is LinearGradient
.