4 ms·
I find that SwiftUI is fantastic for small, self-contained views, that don’t have any complex custom behaviour, and don’t deal with navigation logic. For anythi
by spideymans 4y ago
I find that SwiftUI is fantastic for small, self-contained views, that don’t have any complex custom behaviour, and don’t deal with navigation logic. For anything more complex that that, I’d strongly urge falling back to UIKit
- ardit33 4y agoAgreed... it is not ready to be prime time yet. UIKit is still unbeatable for more serious apps. At this pace it might take few more years of dev for SwiftUI to reach feature parity.
- viktorcode 4y agoI concluded from experience that it always pays off to keep views separate from any logic except the bare minimum required for presenting the data on screen. This works regardless of UI framework.
- spideymans 4y agoAre you describing MVVM? If so, I completely agree.
- secretsatan 4y agoI concur, recruiting now and everyone wants to use swift ui, but uikit, horrible as it is, is the only option for our complex ui
- LeoNatan25 4y agoWhat is “horrible” about UIKit or AppKit, other than them not being the latest sexy fad?
- deleted 4y ago[deleted]
- gardaani 4y agoUIKit's constraint-based layout system isn't as easy as SwiftUI's layout system. SwiftUI layout system is similar to the CSS layout system, so it's easier to learn.
- LeoNatan25 4y agoEasier to learn but severely limited in what can be achieved. But also, the springs and struts (“autoresizing masks”) is simpler than the SwiftUI system, but just as powerful.
- spideymans 4y ago>I concur, recruiting now and everyone wants to use swift ui, but uikit, horrible as it is, is the only option for our complex ui That's interesting. UIKit is by far my favoured UI development framework (whether on web or mobile). It's incredibly powerful, and also pretty damn easy to work with once you know what you're doing. I feel SwiftUI might be favoured nowadays, only because the vast majority of devs come from a web development background. UIKit unfortunately has a pretty steep learning curve if you've come from a web dev background.