I'm writing something in Swift and I have an array with some pre-calculated values which you can see below:
let pointArray = [[[185,350],8],[[248.142766340927,337.440122864078],5],[[301.67261889578,301.67261889578],5],[[337.440122864078,248.142766340927],5],[[350,185],8],[[327.371274561396,101.60083825503],5],[[301.67261889578,68.3273811042197],5],[[248.142766340927,32.5598771359224],5],[[185,20],8],[[101.60083825503,42.6287254386042],5],[[68.3273811042197,68.3273811042197],5],[[42.6287254386042,101.60083825503],5],[[20,185],8],[[32.5598771359224,248.142766340927],5],[[68.3273811042197,301.67261889578],8],[[101.60083825503,327.371274561396],5]]
My problem is that when compelling, I'm getting the following error:
Expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
I can't quite see why I'm getting this error because this is just an array with data - surely there isn't a maximum size for an array?
So my question is why am I getting the error? Is it just because the array is too large or maybe because there are many decimal points in the array?
Aucun commentaire:
Enregistrer un commentaire