Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I've been doing a lot of SwiftUI stuff lately and the compilation times are pretty crap even for simple applications. Change one line and it's a minute or two of compilation again.

Then there's this fucker for whenever you make a programming error involving types:

>The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions

Basically, your code has a type error somewhere in it, and you need to figure out where and how it's wrong.



The devx is terrible. I came back to native iOS and SwiftUI. to upgrade some of my old apps after working in flutter for the last six months and I've been astonished at how slow and clunky it is. Runtime performance can also be quite bad if you do things in a straightforward way and optimizing things is not very straightforward.

Xcode is still awful too.


One minute compiling Swift UI code - is that without the worst case line above?

So every edit you need to take a minute to see how it renders?


If you're just doing UI changes, I think you can do pretty fast iterations using just the Xcode preview canvas. And while some light edits actually build in seconds, it does feel like it needs that minute compilation surprisingly often when doing fast iterations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: