Initializer
init(colorStops:)initWithColorStops:initWithColorStops_
Creates a color line with the given color stops.
Declaration
init?(colorStops: [GSColorStop])Declaration
- (instancetype) initWithColorStops:(NSArray<GSColorStop *> *) colorStops;Declaration
initWithColorStops_(colorStops: list[GSColorStop]) -> GSColorLineDiscussion
Returns nil if there are less then two color stops or the first/last color stop does not have an offset of 0/1.