DevTechie
Published in

DevTechie

LinearGradient in SwiftUI

Photo by Luke Chesser on Unsplash

Linear gradient applies the color function along an axis, as defined by its start and end points. The gradient maps the unit space points into the bounding rectangle of each shape filled with the gradient.

LinearGradient is a view in SwiftUI which is used to draw a linear gradient. This view conforms to ShapeStyle protocol.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store