kaandedeoglu / KDCircularProgress

A circular progress view with gradients written in Swift
MIT License
1.21k stars 217 forks source link

Dividing By Zero #70

Closed DotoPototo closed 3 years ago

DotoPototo commented 7 years ago

More for awareness here but if you're calculating the angle that the circle progress bar needs to go to, and you end up dividing by zero (I know you can't divide by zero but an example would be you're dividing two values and they both haven't been set and their default is zero) the simulator will run the app fine but running the phone on a device will cause it to freeze with no error or crashing.

Xcode 8.3.2 (8E2002) iPhone 6, 10.2, (14C92)