Declaration

init?(colorStops: [GSColorStop])

Declaration

- (instancetype) initWithColorStops:(NSArray<GSColorStop *> *) colorStops;

Declaration

initWithColorStops_(colorStops: list[GSColorStop]) -> GSColorLine

Discussion

Returns nil if there are less then two color stops or the first/last color stop does not have an offset of 0/1.