rameezhandel / SmartGauge

Customizable Gauge View for iOS
MIT License
3 stars 2 forks source link

fail in setupTickLayer() function in SGTickLayer #5

Open ophirapps opened 1 year ago

ophirapps commented 1 year ago

falls in

for tickNumber in 0...numberOfMajorTicks { let val = CGFloat(tickNumber) * divider let finalTickVal = angleForValue(CGFloat(val)) majorTickValuesArray.append(Int(finalTickVal)) } with error: Thread 1: Swift runtime failure: Double value cannot be converted to Int because it is either infinite or NaN