CandleKit: a native SwiftUI candlestick chart (no WebView)
Description and use
CandleKit is a native SwiftUI candlestick chart that replaces WebView‑based TradingView wrappers, offering smooth gestures, live updates, infinite history, and accessibility.
Problem
iOS developers need candlestick charts that feel native rather than relying on WebViews or JS libraries.
Outcome
CandleKit delivers a native‑looking candlestick chart with smooth gestures, live updates, infinite scrolling, and accessibility support, eliminating the need for WebViews.
Workflow
- 1. Add CandleKit to the project via Swift Package Manager or CocoaPods.
- 2. Instantiate a CandlestickChart view with a collection of candles.
- 3. Optionally chain indicators such as .sma(20) or .ema(50).
- 4. Set frame size and embed in SwiftUI hierarchy.
- 5. Interact with chart using momentum scrolling, pinch‑to‑zoom, long‑press crosshair, and price‑axis dragging.
Evidence
Every time I went looking for a candlestick chart for an iOS app, I found the same thing: a WebView wrapping TradingView's widget or some JS charting library.
So I built CandleKit, an open-source candlestick chart for SwiftUI. The goal: make it feel like a control Apple shipped, not a chart library bolted on.
Momentum scrolling and pinch-to-zoom anchored under your fingers
Live tick updates that redraw without disturbing your scroll position
Under the hood it's split into two targets. CandleKitCore is pure Foundation, no UI dependencies, so it builds on macOS and Linux too - it holds everything testable: viewport math, autoscaling, series diffing, indicator calculations.
It's 0.1, pre-release. CandleKitCore has full unit test coverage, but the SwiftUI rendering side hasn't been profiled on device yet or snapshot-tested, so treat it accordingly.
- Record date: 2026-10-03T15:55:55.229Z