I'm still not 100% sure why this is the case, but the key is that you get an almost zero coefficient under constraints if you have integers as constraint values ββfor the same width or height.
For example, you cannot do flat values, such as 1.2 or 0.8, you need to do 0.79999 or 1.199999, otherwise you will have crashes on some devices.
I updated all my restrictions to use numbers like 0.7999 and it worked.
Want proof of insanity? Put this on the playground:
let a: Double = 0.8 let b: Double = 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 print(a == b)
Then the playground reads amazingly:
0.8 0.79999999 False
Madness, but it shows exactly why the error occurred. Hope this helps.
source share