ivnsch / SwiftCharts

Easy to use and highly customizable charts library for iOS
Apache License 2.0
2.53k stars 410 forks source link

Storyboard view #314

Closed ahmadabudawod closed 6 years ago

ahmadabudawod commented 6 years ago

I have run the Chart example and everything is fine, but when I try to use storyboard as standard view the chart didn't display the code below

fileprivate func showChart(horizontal: Bool) { self.chart?.clearView() let chart = barsChart(horizontal: horizontal) self.chartView = chart.view // Hide the below code and assign view manualy from storyboard // view.addSubview(chart.view) self.chartView.backgroundColor = .red self.chart = chart }

ivnsch commented 6 years ago

Take a look here https://gist.github.com/i-schuetz/f6e285eb0c86bb831510

May need some changes to compile.