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

I’m working on a moderately complex iOS and macOS app in SwiftUI. I haven’t tried the new stuff yet but it’s definitely a very mixed bag. It can save you a lot of time vs the old APIs for simpler things but it can make hard things even harder.

And you’ll probably find yourself dropping down to UICollectionView and NSCollectionView for performance. Xcode remains a terrible IDE.



> It can save you a lot of time vs the old APIs for simpler things but it can make hard things even harder.

Yup.

I like to have a lot of fairly involved stuff, and SwiftUI falls down hard, when you stray from the beaten path.

That's not unusual, but SwiftUI has no "in-between." You either do it 100% their way, or ... good luck with that.

I really despise Auto Layout, but with IB and UIKit, I can do just about any type of UI I want.


AutoLayout is a good example of the last generation of Apple APIs. Even the easy things are painful but if you need to do something really complex there's a way to make it work.

Right now I'm stuck in a situation where any SwiftUI widget except for List has terrible performance but List imposes all these other constraints I can't live with so it looks like once again it's back to UI/NSCollectionView for me.




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

Search: