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

ISCIStyle

@protocol ISCIStyle <NSObject>

Defines the interface for style object throughout SciChart.

  • Applies this style to specified styleable object.

    Declaration

    Objective-C

    - (void)tryApplyStyleTo:(nonnull id)styleableObject;

    Swift

    func tryApply(to styleableObject: Any)

    Parameters

    styleableObject

    The target styleable object.

  • Discards this style on specified styleable object.

    Declaration

    Objective-C

    - (void)tryDiscardStyleFrom:(nonnull id)styleableObject;

    Swift

    func tryDiscardStyle(from styleableObject: Any)

    Parameters

    styleableObject

    The target styleable object.

  • Gets the target styleable object type.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) Class _Nonnull styleableObjectType;

    Swift

    var styleableObjectType: AnyClass { get }