skywinder / GaugeKit

Kit for building custom gauges + easy reproducible Apple's style ring gauges.
https://www.cocoacontrols.com/controls/gaugekit
MIT License
1.03k stars 100 forks source link

Runtime error in Swift 3 #44

Closed tarzon closed 7 years ago

tarzon commented 7 years ago

I was migrating my code from Swift 2.3 to Swift 3.0. Everything was working fine in Swift 2.3, but after updating GaugeKit to 0.4.0, I got this runtime error stating "Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber count]: unrecognized selector sent to instance 0xb000000000000003'". I am using Gauge as drop-in in storyboard.

This behaviour is verified as after removing GaugeKit, everything ran smoothly.

tarzon commented 7 years ago

After debugging, it seems that this was an issue with the storyboard. The only solution that worked for me was to delete the view and added it back. Still don't know the actual reason behind it. Might be something related to IBDesignable.

Closing this issue as this is not certainly related to GaugeKit.