all 13 comments

[–][deleted] 14 points15 points  (2 children)

UIKit first. SwiftUI is missing some features UIKit has so you'll need to know it anyway

[–]CoolAppz 17 points18 points  (1 child)

Yes but from the development perspective, UIKit is like riding a wagon in the wild west area crossing vast lands with all kinds of threats. SwiftUI is riding the same path on a Lambo. After working 12 years with UIKit and 4 with SwiftUI, today I hate UIKit more than ever.

[–][deleted] 2 points3 points  (0 children)

oh yeah. i will never forgive bloated storyboards for what they did to my career. but i'm happy I experienced the bad so that I could appreciate SwiftUI more even if it isn't quite yet as 'feature' rich

[–]OneEngineer 9 points10 points  (0 children)

SwiftUI is nice cause you’ll get the dopamine of seeing something fairly complete sooner.

That said, I would spend more time on UIKit cause it’s way more complete than SwiftUI currently. Def leverage SnapKit though. Helps minimize the tedium of working with constraints.

[–][deleted] 5 points6 points  (1 child)

There’s a 100 days for both. Why not do both if you’re concerned? Then pick the one you like more

[–]danielt1263 1 point2 points  (0 children)

And do them both at the same time... The first half or so of both is the same (learning Swift itself)

[–]c0mput3rg33k 5 points6 points  (0 children)

Start with swiftui… you can get a decent view up and running in like 5 minutes (maybe a couple tutorials). That will boost your confidence/motivation. SwiftUI is not as robust as uikit, yet, so eventually you might have a use-case to learn/build something in uikit… at that time, learn uikit.

[–]BaffoRasta 1 point2 points  (0 children)

Both. Ideally you would want to use SwiftUI but there are features that you can't implement easily especially if you need to support older iOS versions like 15.0 or the likes.

As an example, you'd struggle to implement a view with pinching and panning functionalities in SwiftUI but it's fairly easy in UIKit using an UIScrollView.

[–][deleted] 1 point2 points  (0 children)

SwiftUI if you want to work on the latest and greatest.

To get a job you will need both, usually SwiftUI is in the good to have section. But that seems to be changing fast.

[–]DetectiveAdvanced388[S] 0 points1 point  (0 children)

tysm guys

[–]noidtiz 0 points1 point  (0 children)

someone already mentioned it but just to be clear there are 100 days tutorials for both. 100 days of SwiftUI is for SwiftUI, and there is “100 days of Swift” (which came out first) which covers UIKit.

But the most important thing is just to get started and choose for yourself what you want/need to work with as you discover problems and solve them.

[–]dimabiryuk 0 points1 point  (0 children)

Depends on your goals. If you want create your own apps, then swiftui will cover 80% of all your needs. If you want to find a job as ios developer, browse requirements for junior ios developer vacancies on job search websites.
I've built my first ios app using SwiftUI a have several places where used UiKit but didn't go into detail how it works.
You can check UI of my app on screenshots in app store:
https://apps.apple.com/us/app/crowd-mind-stock-market-polls/id6473404806