KDIGradientView

@interface KDIGradientView : UIView
#else
@interface KDIGradientView : NSView
#endif

/**
 Set and get the colors of the underlying CAGradientLayer.
 
 The array should contain either UIColor or NSColor instances.
 */
@property (copy,nonatomic,nullable) NSArray<KDIColor *> *colors;

/**
 Set and get the locations of the underlying CAGradientLayer.
 
 The gradient stops are specified as values between 0 and 1. The values must be monotonically increasing. If nil, the stops are spread uniformly across the range. Defaults to nil.
 */
@property (copy,nonatomic,nullable) NSArray<NSNumber *> *locations;

/**
 The start point of the underlying CAGradientLayer.
 
 The point is defined in unit coordinate space.
 */
@property (assign,nonatomic) KDIPoint startPoint;

/**
 The end point of the underlying CAGradientLayer.
 
 The point is defined in the unit coordinate space.
 */
@property (assign,nonatomic) KDIPoint endPoint;

@end

Undocumented

  • Set and get the colors of the underlying CAGradientLayer.

    The array should contain either UIColor or NSColor instances.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSArray<UIColor *> *colors;
  • Set and get the locations of the underlying CAGradientLayer.

    The gradient stops are specified as values between 0 and 1. The values must be monotonically increasing. If nil, the stops are spread uniformly across the range. Defaults to nil.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSArray<NSNumber *> *locations;
  • The start point of the underlying CAGradientLayer.

    The point is defined in unit coordinate space.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint startPoint;
  • The end point of the underlying CAGradientLayer.

    The point is defined in the unit coordinate space.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint endPoint;