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

ISCIChartSurfaceBase

@protocol ISCIChartSurfaceBase <ISCIPropertyHolder, ISCIThemeable,
                                ISCIPublishEvents, ISCIView>

A base interface for SCIChartSurface and SCIPieChartSurface classes.

  • Deprecated

    Please use theme: instead

    Defines the current theme applied to this ISCIChartSurfaceBase.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) __deprecated_msg("Please use `theme:` instead") NSString *themeId;

    Swift

    var themeId: String { get }
  • Defines the current theme applied to this ISCIChartSurfaceBase.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) SCIChartTheme theme;

    Swift

    var theme: SCIChartTheme { get }
  • Deprecated

    Please use backgroundBrushStyle instead

    Gets the background brush style for SCIChartSurface.

    Declaration

    Objective-C

    @property (nonatomic, strong) __deprecated_msg("Please use backgroundBrushStyle instead") SCIBrushStyle *backgoundBrushStyle;

    Swift

    var backgoundBrushStyle: SCIBrushStyle { get set }
  • Gets the background brush style for SCIChartSurface.

    Declaration

    Objective-C

    @property (nonatomic, strong) SCIBrushStyle *_Nonnull backgroundBrushStyle;

    Swift

    var backgroundBrushStyle: SCIBrushStyle { get set }
  • Gets the ISCIChartModifierSurface instance for this SCIChartSurface.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<ISCIChartModifierSurface> _Nonnull modifierSurface;

    Swift

    var modifierSurface: ISCIChartModifierSurface { get }
  • Export current chart surface into UIImage object by capturing the whole screen. It is used for taking screenshots.

    Declaration

    Objective-C

    - (nonnull UIImage *)exportToUIImage;

    Swift

    func exportToUIImage() -> UIImage
  • Export current chart surface into UIImage object by capturing a custom rectangle. It is used for taking screenshots.

    Declaration

    Objective-C

    - (nonnull UIImage *)exportUIImageWithRect:(CGRect)rect;

    Swift

    func exportUIImage(with rect: CGRect) -> UIImage