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

SCIMultiPointAnnotationPlacementModifier

@interface SCIMultiPointAnnotationPlacementModifier
    : SCIAnnotationCreationModifierBase

Base gesture modifier for interactive placement of two-point trading drawing tools.

Interaction: touch down → places the first anchor point drag → moves the second anchor point live touch up → commits the annotation, which then becomes editable and selected

Note

This class provides the placement engine only. Use one of its concrete subclasses - SCIFibonacciRetracementCreationModifier, SCIMeasureCreationModifier or SCIStopLossTakeProfitCreationModifier - which create and style their own annotation type.
  • Defines the value indicating whether the modifier keeps placing further annotations once one has been completed.

    Note

    Defaults to NO, so that the completed annotation can be edited straight away.

    Declaration

    Objective-C

    @property (nonatomic) BOOL keepPlacingAfterComplete;

    Swift

    var keepPlacingAfterComplete: Bool { get set }
  • Gets the value indicating whether the user is currently placing an annotation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isPlacing;

    Swift

    var isPlacing: Bool { get }
  • Re-arms the modifier so that the next drag places a new annotation.

    Note

    Only needed when keepPlacingAfterComplete is NO.

    Declaration

    Objective-C

    - (void)startPlacement;

    Swift

    func startPlacement()
  • Cancels any placement in progress and removes the incomplete annotation from the chart.

    Declaration

    Objective-C

    - (void)reset;

    Swift

    func reset()