3 ms·
Use switch statements inside SwiftUI? Can't do that (or you'll have to wrap every view into AnyView) Use `if case let` to conditionally unwrap and show a view?
by phantomato 6y ago
Use switch statements inside SwiftUI? Can't do that (or you'll have to wrap every view into AnyView)
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
- bsaul 6y agoThanks. I recently took the decision to wait for another year before using in for a production app. Seems like i had a good intuition.