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

SCIThemeManager

@interface SCIThemeManager : NSObject

Provides API for automatic theme management.

  • Deprecated

    Please use themeProviderWithTheme: instead

    Gets ISCIThemeProvider instance by themeKey

    Declaration

    Objective-C

    + (nullable id<ISCIThemeProvider>)themeProviderWith:
        (nonnull NSString *)themeKey;

    Parameters

    themeKey

    The id of theme to get.

    Return Value

    ISCIThemeProvider instance.

  • Gets ISCIThemeProvider instance by themeKey

    Declaration

    Objective-C

    + (nullable id<ISCIThemeProvider>)themeProviderWithTheme:(SCIChartTheme)theme;

    Parameters

    theme

    The id of theme to get.

    Return Value

    ISCIThemeProvider instance.

  • Deprecated

    Please use removeTheme: instead

    Removes cached ISCIThemeProvider instance by its themeKey.

    Declaration

    Objective-C

    + (void)removeThemeByThemeKey:(nonnull NSString *)themeKey;

    Swift

    class func removeTheme(byThemeKey themeKey: String)

    Parameters

    themeKey

    The themeKey of theme to remove.

  • Removes cached ISCIThemeProvider instance by its themeKey.

    Declaration

    Objective-C

    + (void)removeTheme:(SCIChartTheme)theme;

    Swift

    class func removeTheme(_ theme: SCIChartTheme)

    Parameters

    theme

    The theme to remove.

  • Deprecated

    Please use addTheme:fromBundle: instead

    Creates and adds theme from specified style.

    Declaration

    Objective-C

    + (void)addThemeByThemeKey:(nonnull NSString *)themeKey
                    fromBundle:(nonnull NSBundle *)bundle;

    Swift

    class func addTheme(byThemeKey themeKey: String, from bundle: Bundle)

    Parameters

    themeKey

    The theme style to create ISCIThemeProvider from.

    bundle

    The bundle where .plist theme file is located.

  • Creates and adds theme from specified style.

    Declaration

    Objective-C

    + (void)addTheme:(SCIChartTheme)theme fromBundle:(nonnull NSBundle *)bundle;

    Swift

    class func addTheme(_ theme: SCIChartTheme, from bundle: Bundle)

    Parameters

    theme

    The theme style to create ISCIThemeProvider from.

    bundle

    The bundle where .plist theme file is located.

  • Deprecated

    Please use applyTheme:toThemeable: instead

    Apply theme to specified ISCIThemeable instance.

    Declaration

    Objective-C

    + (void)applyThemeToThemeable:(nonnull id<ISCIThemeable>)themeable
                     withThemeKey:(nonnull NSString *)themeKey;

    Parameters

    themeable

    The target to apply theme to.

    themeKey

    The theme id.

  • Apply theme to specified ISCIThemeable instance.

    Declaration

    Objective-C

    + (void)applyTheme:(SCIChartTheme)theme
           toThemeable:(nonnull id<ISCIThemeable>)themeable;

    Parameters

    theme

    The theme to be applied.

    themeable

    The target to apply theme to.

  • Apply default theme to specified ISCIThemeable instance.

    Declaration

    Objective-C

    + (void)applyDefaultThemeToThemeable:(nonnull id<ISCIThemeable>)themeable;

    Parameters

    themeable

    The target to apply theme to.