exyte / Macaw

Powerful and easy-to-use vector graphics Swift library with SVG support
MIT License
6k stars 552 forks source link

Build periodically fails with error: The compiler is unable to type-check this expression in reasonable time #761

Open Alexeichua opened 3 years ago

Alexeichua commented 3 years ago

It happens in the source: /Pods/Macaw/Source/model/draw/ColorMatrix.swift:60:17: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions.

Enabling source editing and adding type to expression fixes the problem. New code look as follows: let a: (Int) -> Double = { i in m1[i] + c m2[i] + s m3[i] }

Added type (Int) -> Double here. It would be great to have it out of box.

mohan083 commented 3 years ago

@Alexeichua Updating pod file like this

pod "Macaw", "0.9.7"

solved my issue