iOS Charting Documentation - SciChart iOS Charts SDK v3.x

SCIThemeManager

@interface SCIThemeManager : NSObject

Provides API for automatic theme management.

  • 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.

  • 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.

  • Creates and adds theme from specified style.

    Declaration

    Objective-C

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

    Swift

    class func addTheme(byThemeKey themeKey: String)

    Parameters

    themeKey

    The theme style to create ISCIThemeProvider from.

  • 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 default theme to specified ISCIThemeable instance.

    Declaration

    Objective-C

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

    Parameters

    themeable

    The target to apply theme to.