iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIRangeSelectorAnnotation

@interface SCIRangeSelectorAnnotation : SCIAnnotationBase

Defines a rectangle, which may be placed on the chart at specific X1, Y1, X2, Y2 coordinates.

  • Brush with which box annotation is drawn on chart surface.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) SCIBrushStyle *fillBrush;

    Swift

    var fillBrush: SCIBrushStyle { get set }
  • Custom View for grip

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIView *customGripView;

    Swift

    var customGripView: UIView { get set }
  • Grip helper point x1 & x2

    Declaration

    Objective-C

    @property (nonatomic) CGFloat gripHelperX1;

    Swift

    var gripHelperX1: CGFloat { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) CGFloat gripHelperX2

    Swift

    var gripHelperX2: CGFloat { get set }
  • Indicates whether the grip helper should be drawn by the rendering system.

    This value is controlled internally by the program logic based on the current interaction state. If YES, the grip helper will be rendered; otherwise, it will be omitted from drawing.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldDrawGripHelper;

    Swift

    var shouldDrawGripHelper: Bool { get set }
  • Determines whether the grip helper should be enabled for display in any context.

    This is a user-configurable setting. If NO, the grip helper will not be shown at all, regardless of internal drawing logic or interaction state.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldShowGripHelper;

    Swift

    var shouldShowGripHelper: Bool { get set }
  • Specifies the complete range controlled by the range selector modifier.

    Declaration

    Objective-C

    @property (nonatomic, strong) id<ISCIRange> _Nonnull range;

    Swift

    var range: any ISCIRange { get set }
  • The minimum window gap for drawing the grip helper

    If the actual gap is smaller than this threshold, the grip helper will be displayed to assist with drag or resize interactions.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat gripHelperThresholdGap;

    Swift

    var gripHelperThresholdGap: CGFloat { get set }