SwiftUI vs. UIKit – Comparison of building the same app in each framework
youtube.com
youtube.com
Use `if case let` to conditionally unwrap and show a view? Nope.
Make a customizable tableview? Nope. `List` is all you get. And you can't even remove the separator.
Get the scroll position for the ScrollView or List? Definitely not possible.
Even SwiftUI's TabView is buggy as hell. It resets the view's state as soon as you switch the tab. Everytime I encounter a bug or an issue in SwiftUI I see a post on Stackoverflow where people say it's not currently possible to do that or it will be in SwiftUI 2.0. I heavily use SwiftUI in my current project, buy 90% of the views are actually wrappers around UIKit, even all of the UITextFields are wrapped because SwiftUI cannot provide basic access to the underlying responders.
So my opinion is to at least wait for 2.0
- uikit was shipped with interface builder from day 1. which lets you design trivial interfaces in a wysiwyg way, whithout typing any code at all.
- typing code is never what really takes time. Complex interactions and non-standard UI design is where you spend most of your time.