EXTENSION
public extension Shape
func gradientFill(
colors: Color...,
start: UnitPoint = .top,
end: UnitPoint = .bottom) -> some View
Addd a LinearGradient
fill on Shape
- Parameters:
- colors: Colors
- start: Start, default top
- end: End, default bottom
- Returns: View
Name | Description |
---|---|
colors | Colors |
start | Start, default top |
end | End, default bottom |