GradientPoint
struct GradientPoint
Represents a valid point for a CAGradientLayer’s startPoint
or endPoint
when beginning or ending a slide.
-
Represents a valid coordinate for either the
See morex
or they
of aGradientPoint
.Declaration
Swift
enum Location: CGFloat
-
The x coordinate of the
GradientPoint
Declaration
Swift
let x: Location
-
The y coordinate of the
GradientPoint
Declaration
Swift
let y: Location
-
A convenient way to convert a
GradientPoint
to aCGPoint
.Declaration
Swift
var cgPoint: CGPoint