Better HN
topnewbestaskshowjobs
Log inSign up

phantomato

4 karma · joined Aug 21, 2019 (7y ago) · 4 submissions

Submissions

comment 5y ago · link · parent

iMessage is for iOS only, most of people won’t even care about it

comment 6y ago · link · parent

Nope

comment 6y ago · link · parent

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

comment 6y ago · link · parent

Honestly guys, don't even waste your time on SwiftUI prior to version 2.0. It's the most raw and crapiest framework apple has ever released. It only looks good on paper, and drastically misses basic functionality. SwiftUI 2 looks a bit more mature though