反馈/技术交流群:902071358
- 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
}()
......
}
进一步优化CUP占用率