if progress - self.progress value is smaller than 0.001 then 100% crash because difference becomes zero.
I found it when reporting progress from CloudKit asset download and I did nothing tricky to make it crash.
I am not sure if this is bug or not :), but wanted to let you know.
As you declared that variable as int, it is crashing here.
if
progress - self.progress
value is smaller than 0.001 then 100% crash because difference becomes zero. I found it when reporting progress from CloudKit asset download and I did nothing tricky to make it crash.I am not sure if this is bug or not :), but wanted to let you know.
Thanks.