getting crash in override func awakeFromNib() { super.awakeFromNib() chart.delegate = self <---- Here is Crash }