Skip to main content

Widgets & Live Activities

The CandleKitWidgets product depends only on CandleKitCore and supports iOS 17 and watchOS 10.

Home-screen widget​

WidgetCandleChart is a non-interactive chart for WidgetKit. Long series are downsampled so drawing cost stays bounded.

WidgetCandleChart(candles, mode: .line, maxCandles: 40, showsLastPrice: true)

The Demo's small widget on the home screen

Live Activities and the Dynamic Island​

SparklineView draws a price line from plain closing prices.

Compact Dynamic Island Expanded Dynamic Island Lock Screen banner, with the system permission prompt

Siri and Shortcuts​

CandleKit ships no intent type, because intents must live in your app target. See docs/guides/app-intents.md in the repository for the pattern and the Demo's ShowChartIntent.