I'm trying to create a simple LineChart from the Charts framework
I have successfully (at least I think I did it properly) used Carthage to link the binary to my XCode project so that I can use Charts library.
I created a UIView in my storyboard and set the Class and Module to the proper values:
I created an outlet in the proper UIViewController class:
@IBOutlet weak var lineChartView: LineChartView!
I added the delegate to the class:
class LineChartViewController: UIViewController, ChartViewDelegate {
In the viewDidLoad() function I tried to set the delegate:
lineChartView.delegate = self
*** this is the line that creates the 'fatal error' It's as if the outlet is not set properly, or the Class/Module is not set properly.
If I check Connection Inspector, the referencing outlet is showing as connected:
I'm stumped as to what the problem could be so any help would be greatly appreciated! Thank you