Hacker News new | ask | show | jobs
by choxi 489 days ago
I like SwiftUI, reactive frameworks just make sense to me for UIs. It also interfaces with UIKit in a pretty nice way so you don’t have to commit to one or the other. I’m a newer iOS dev though, I’ve heard many complaints from more experienced devs.
1 comments

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

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

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