3 ms·
I have encountered the infamous > The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-exp
by lawgimenez 2y ago
I have encountered the infamous
> The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
a lot. And it’s impossible to debug.
https://developer.apple.com/forums/thread/652691 https://developer.apple.com/forums/thread/652691
- floydnoel 2y agothat just means you have too many items together. break them up into smaller components or use something like a Group and that solves it. not a big mystery
- lawgimenez 2y agoWe all know it’s just the Swift compiler getting confused. In my cases I encountered this error in different scenarios in offset modifier, Strings, Colors.
- danielscrubs 2y agoThe mystery is not why it happens, but how compiler tech can go backwards and still win. Ps. I do like SwiftUI, just not the implementation.