I am trying to use this charting library which is a port of the same library I use for Android:
https://github.com/danielgindi/ios-charts
Since i use Swift targeting ios7+ I decided to follow this guide:
If you want to compile for iOS 7:
Drag the code itself (.swift files) to your project. As sadly, Swift currently does not support compiling Frameworks for iOS 7. Make sure that the files are added to the Target membership.
So I have done basicly placed a copy of the entire ios-charts folder in my project folder next to my own .swift files.
Then removed all units but .swift but keeping the file/directory structure. Interestingly, I can not change/add targets for any of the files in the folder since the option does not show itself when clicking the .swift files in xcode.
I then drop an UIView and change class to e.g. BarChartView.
I create an outlet so I have this in my class definition:
@IBOutlet weak var myStickChart: BarChartView!
However, I when building I am getting error
use of undeclared type "BarChartView
This is probably a simple problem, but this is the first 3rd party library I have to use.
I have experiemented with pods before, but decided against it - I would rather, for now as long as I am targeting ios7, be able to drag in he untts I want to use like descrived in the instructions for ios-charts with swift/ios7


include ios-chartsin your class definition?@import Chartsin your swift class file