iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIAnnotationCollection

@interface SCIAnnotationCollection
    : SCIObservableCollection < id <ISCIAnnotation>
> @end

Contains a collection of ISCIAnnotation.

  • Initializes a new instance of SCIAxisCollection class.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCollection:
        (nonnull NSArray<id<ISCIAnnotation>> *)collection;

    Swift

    init(collection: [ISCIAnnotation])

    Parameters

    collection

    The collections with items to add.

  • Tries to select annotation from this collection.

    Declaration

    Objective-C

    - (BOOL)trySelectAnnotation:(nonnull id<ISCIAnnotation>)annotation;

    Swift

    func trySelect(_ annotation: ISCIAnnotation) -> Bool

    Parameters

    annotation

    The annotation to select.

    Return Value

    True if annotation has been selected.

  • Deselects all annotations in this collection.

    Declaration

    Objective-C

    - (void)deselectAll;

    Swift

    func deselectAll()