Skip to content

TradingChart 0.1.3

Latest

Choose a tag to compare

@pavellunev pavellunev released this 07 Oct 12:31

Added

  • Built-in persistence of the chart's settings: set TradingChartConfiguration.persistence to a ChartPersistence and 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. UserDefaults by default; adopt ChartPreferencesStore for 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