I think it will take few more years until SwiftUI can get to feature parity with UIKit.
I think it will take few more years until SwiftUI can get to feature parity with UIKit.
If you start with SwiftUI and need to integrate sone part of UIkit without really knowing the patterns, it's daunting for a while, but it's kind of an interesting daunting. My biggest issue is in the blurry line between iOS SwiftUI and mac swiftUI capabilities. A lot of examples are written by ios devs, who aren't even thinking about mac discrepancies
I was working on a 'toy app' earlier this year. I needed to use MapKit, but the SwiftUI MapKit is pretty simple, features-wise.
So I had to do the more complicated (relatively-speaking as someone with no prior UIKit/Swift experience) solution of using a UIViewRepresentable to host a UIKit MapView.
It wasn't the hardest thing to implement but it definitely shows that SwiftUI can't handle everything.
I definitely think having that 1:1 parity will help and hopefully it doesn't took too long.
I have used SwiftUI now in 5 shipping iOS applications and one internal macOS app. Two of them had codebases that extended all the way back to pre-ARC Objective-C! One app was 100% SwiftUI (with two UIKit exceptions where I had to drop down to work around a SwiftUI bug)
I get "real" things done in both UIKit and SwiftUI. It is trivial to host a SwiftUI view in UIKit, and it soon becomes the most pleasant part of the app to work on in my experience
It's simply a tool to use alongside UIKit, and it happens to be fun to use too
> It's simply a tool to use alongside UIKit, and it happens to be fun to use too
exactly. the way i look at it is like a super powered version of xml (xib) for describing app uisthere are alot of things you cant do in pure xml/xib and the same is true of swiftui, in those cases you need to use an island of imperative code (uikit or custom class) and things work smoother in those cases
We are also working on SwiftUI stuff as well.
Let me know when any of the major companies actually use it seriously.
Out of curiosity, what products of note have you developed that give you the right to talk down to everyone else?
We are a bank. We make software used by millions of people a day.
We are a major company.
Lost your key, gatekeeper? :P
Plenty of serious development uses SwiftUI and storyboards.
You can do very fully featured apps in SwiftUI today
But I’m curious what this means, specifically. What would a good example of a serious UI, in your view? Not looking to argue - I’m genuinely curious.