Skip to content

Latest commit

History

History
31 lines (25 loc) 路 529 Bytes

File metadata and controls

31 lines (25 loc) 路 529 Bytes

EXTENSION

Shape

public extension Shape

Methods

gradientFill(colors:start:end:)

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

Parameters

Name Description
colors Colors
start Start, default top
end End, default bottom