SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I am building an iOS framework that sits on top of SciChart for app developers within our company. I’d like to provide my own default SCIThemeColorProvider object for charts in my framework. Easiest way to do that is to include my own theme plist in my framework’s bundle, but I cannot currently do that (as of 126.96.36.1993) because the SCIThemeColorProvider initializer assumes it’s either in the “Charting.SciChart” bundle or the main bundle.
I’d like to propose modifying SCIThemeColorProvider to add another initializer that takes a bundle ID, like this:
/** * Creates theme provider based on specified style * * @param themeKey The key of style which should be used as base for this theme provider * * @param bundleIdentifier The identifier of the bundle containing the theme plist identified by * themeKey; if nil, the main bundle is used. */ - (nullable instancetype)initWithThemeKey:(nonnull NSString*)themeKey bundleIdentifier:(nullable NSString*)bundleIdentifier;
The existing -initWithThemeKey: initializer would call through to this initializer with a nil bundle ID.
I have attached a patch file with this proposed change. Could this be added to an upcoming build?