Skip to content
forked from sevtin/KSChart

k线/kline/kchart,适用于股票和区块链App。Swift5.0编写,数据处理能力优秀。Demo集成websocket,并接入币安数据

License

Notifications You must be signed in to change notification settings

sevtins/KSChart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KSChart

time

candle

Cross

以下为模拟器数据,真机示例内存占用为12M(500多条K线数据),机型不同CPU占用差异会比较大,老设备在滑动时帧数会有所下降

cpu memory

反馈/技术交流群:902071358

如果觉得好用就打个赏呗

Alipay WeChatPay

开发环境

  • Xcode 11.0+
  • Swift 5.1+

示例

请参考KSKChartView.swift

class KSKChartView: KSBaseView {
    
    var klineData = [KSChartItem]()
    var configure: KSChartConfigure = KSChartConfigure.init()
    
    weak var delegate: KSKChartViewDelegate?
    
    lazy var chartView: KSZeroChartView = {
        let chartView         = KSZeroChartView(frame: self.bounds)
        let style             = configure.loadConfigure()
        chartView.style       = style
        chartView.delegate    = self
        self.addSubview(chartView)
        return chartView
    }()
    ......
}

Next Version

进一步优化CUP占用率

About

k线/kline/kchart,适用于股票和区块链App。Swift5.0编写,数据处理能力优秀。Demo集成websocket,并接入币安数据

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 96.0%
  • Objective-C 2.9%
  • Ruby 1.1%