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

SCIFreehandDrawingModifier

@interface SCIFreehandDrawingModifier : SCIAnnotationCreationModifierBase

A gesture modifier that enables freehand brush drawing on a SciChartSurface.

  • Defines the stroke style for this brush annotation.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) SCIPenStyle *stroke;

    Swift

    var stroke: SCIPenStyle { get set }
  • Extra padding applied around the selection rectangle.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat selectionOffset;

    Swift

    var selectionOffset: CGFloat { get set }
  • Deletes any currently selected brush annotations from the chart surface.

    Declaration

    Objective-C

    - (void)deleteSelectedAnnotations;

    Swift

    func deleteSelectedAnnotations()