Repository navigation
Added
- Built-in persistence of the chart's settings: set
TradingChartConfiguration.persistenceto aChartPersistenceand the chart restores its style, the indicators chosen from your catalog and (optionally, per drawings key — e.g. per symbol) its drawings when it is created, and saves them when they change.UserDefaultsby default; adoptChartPreferencesStorefor your own storage. Records are versioned JSON.
var configuration = TradingChartConfiguration()
configuration.persistence = ChartPersistence(key: "chart", indicatorCatalog: catalog, drawingsKey: symbol)
let model = TradingChartModel(configuration: configuration)Full changelog: 0.1.2...0.1.3