What's New

Build Status

SwiftUI Stock Charts

Swift package for displaying interactive stock charts easily 🎉

View1-Screenshot

Features

  • Interactive line chart
  • Light weight
  • Easy to use

Requirements

  • iOS 14+
  • Swift 5+

Instalation

  • In Xcode go to File -> Swift packages -> Add package dependency
  • Copy and paste https://github.com/denniscm190/StockCharts.git

Usage

import StockCharts

Line chart

LineChartView(data: [Double], dates: [String]?, hours: [String]?, dragGesture: Bool?)

Arguments

data: [120.3, 121.0, 132.4, ...]
dates: ["yyyy-MM-dd", "2021-01-01", "2021-01-02", ...]
hours: ["10:20", "10:21", "10:22", ...]  // It could be any format
dragGesture: false  // By default is true

LineChartVideo

Description

  • Swift Tools 5.3.0

Dependencies

  • None
Last updated: Fri May 14 2021 05:14:27 GMT-0500 (GMT-05:00)