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
ISCIThemeProvider
instance bythemeKey
Declaration
Objective-C
+ (nullable id<ISCIThemeProvider>)themeProviderWith: (nonnull NSString *)themeKey;
Swift
class func themeProvider(with themeKey: String) -> ISCIThemeProvider?
Parameters
themeKey
The id of theme to get.
Return Value
ISCIThemeProvider
instance. -
Gets
ISCIThemeProvider
instance bythemeKey
Declaration
Objective-C
+ (nullable id<ISCIThemeProvider>)themeProviderWithTheme:(SCIChartTheme)theme;
Swift
class func themeProvider(withTheme theme: SCIChartTheme) -> ISCIThemeProvider?
Parameters
theme
The id of theme to get.
Return Value
ISCIThemeProvider
instance. -
Deprecated
Please use
removeTheme:
insteadRemoves cached
ISCIThemeProvider
instance by itsthemeKey
.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 itsthemeKey
.Declaration
Objective-C
+ (void)removeTheme:(SCIChartTheme)theme;
Swift
class func removeTheme(_ theme: SCIChartTheme)
Parameters
theme
The 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
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:
insteadApply theme to specified
ISCIThemeable
instance.Declaration
Objective-C
+ (void)applyThemeToThemeable:(nonnull id<ISCIThemeable>)themeable withThemeKey:(nonnull NSString *)themeKey;
Swift
class func applyTheme(to themeable: ISCIThemeable, withThemeKey themeKey: String)
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;
Swift
class func applyTheme(_ theme: SCIChartTheme, to themeable: ISCIThemeable)
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;
Swift
class func applyDefaultTheme(to themeable: ISCIThemeable)
Parameters
themeable
The target to apply theme to.