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.
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.