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:insteadGets
ISCIThemeProviderinstance bythemeKeyDeclaration
Objective-C
+ (nullable id<ISCIThemeProvider>)themeProviderWith: (nonnull NSString *)themeKey;Swift
class func themeProvider(with themeKey: String) -> (any ISCIThemeProvider)?Parameters
themeKeyThe id of theme to get.
Return Value
ISCIThemeProviderinstance. -
Gets
ISCIThemeProviderinstance bythemeKeyDeclaration
Objective-C
+ (nullable id<ISCIThemeProvider>)themeProviderWithTheme:(SCIChartTheme)theme;Swift
class func themeProvider(withTheme theme: SCIChartTheme) -> (any ISCIThemeProvider)?Parameters
themeThe id of theme to get.
Return Value
ISCIThemeProviderinstance. -
Deprecated
Please use
removeTheme:insteadRemoves cached
ISCIThemeProviderinstance by itsthemeKey.Declaration
Objective-C
+ (void)removeThemeByThemeKey:(nonnull NSString *)themeKey;Swift
class func removeTheme(byThemeKey themeKey: String)Parameters
themeKeyThe
themeKeyof theme to remove. -
Removes cached
ISCIThemeProviderinstance by itsthemeKey.Declaration
Objective-C
+ (void)removeTheme:(SCIChartTheme)theme;Swift
class func removeTheme(_ theme: SCIChartTheme)Parameters
themeThe theme to remove.
-
Deprecated
Please use
addTheme:fromBundle:insteadCreates 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
themeKeyThe theme style to create
ISCIThemeProviderfrom.bundleThe 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
themeThe theme style to create
ISCIThemeProviderfrom.bundleThe bundle where .plist theme file is located.
-
Deprecated
Please use
applyTheme:toThemeable:insteadApply theme to specified
ISCIThemeableinstance.Declaration
Objective-C
+ (void)applyThemeToThemeable:(nonnull id<ISCIThemeable>)themeable withThemeKey:(nonnull NSString *)themeKey;Swift
class func applyTheme(to themeable: any ISCIThemeable, withThemeKey themeKey: String)Parameters
themeableThe target to apply theme to.
themeKeyThe theme id.
-
Apply theme to specified
ISCIThemeableinstance.Declaration
Objective-C
+ (void)applyTheme:(SCIChartTheme)theme toThemeable:(nonnull id<ISCIThemeable>)themeable;Swift
class func applyTheme(_ theme: SCIChartTheme, to themeable: any ISCIThemeable)Parameters
themeThe theme to be applied.
themeableThe target to apply theme to.
-
Apply default theme to specified
ISCIThemeableinstance.Declaration
Objective-C
+ (void)applyDefaultThemeToThemeable:(nonnull id<ISCIThemeable>)themeable;Swift
class func applyDefaultTheme(to themeable: any ISCIThemeable)Parameters
themeableThe target to apply theme to.
View on GitHub