Typecast
public struct Typecast
Provides methods that cast among similar value types.
-
Undocumented
Declaration
Swift
public static func toCGPoint(_ pt: Point) -> CGPoint
-
Casts the specified LinearGradientBrush instance to a CGColorRef.
Declaration
Swift
public static func toCGGradient(_ brush: LinearGradientBrush?) -> CGGradient
Parameters
rect
The brush to cast.
Return Value
A CGGradientRef instance.