SwiftUI React Nativev6.3.3
  • Values
  • Runtime

Getting started

  • Introduction
  • Installation
  • Quick start

Concepts

  • Reading the reference
  • Composing modifiers
  • Values
  • State and data flow

About

  • What it is
  • Why SwiftUI
  • History

Under the hood

  • How it renders
  • How it's generated
  • Principles
ValuesDrawing and shapes

GradientStop

One color stop in the gradient.

StructureiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+Gradient.Stop in SwiftUI

Declaration#

React
type GradientStop = { color: Color; location: number; };
Swift
@frozen struct Stop

Properties#

  • color*Color

    The color for the stop.

  • location*number

    The parametric location of the stop.

Used by#

  • AngularGradientAn angular gradient.
  • EllipticalGradientA radial gradient that draws an ellipse.
  • LinearGradientA linear gradient.
  • RadialGradientA radial gradient.

See also#

More in Drawing and shapes.

  • AngleA geometric angle whose value you access in either radians or degrees.
  • AngularGradientAn angular gradient.
  • AnyGradientA color gradient.
  • BlendModeModes for compositing a view with overlapping content.
  • ButtonBorderShapeA shape used to draw a button's border.
  • ColorMatrixA matrix to use in an RGBA color transformation.
  • ConcentricRectangleAnimatableDataThe type defining the data to animate.
  • ContainerRelativeShapeA shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.
  • ContentShapeKindsA kind for the content shape of a view.
  • CoordinateSpaceProtocolA frame of reference within the layout system.
  • DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
  • EllipticalGradientA radial gradient that draws an ellipse.

On this page

0%
  • Declaration
  • Properties
  • Used by
  • See also
Report an issue