UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

Should you learn SwiftUI or UIKit?

Recorded – watch the full episode on YouTube.

If a junior developer asks whether they should learn SwiftUI or UIKit, what would your advice be?

Kaya Thomas: My advice would be start with UIKit. Start with UIKit, understand the kind of foundations of iOS programming, and really get your foundation strong because jumping into SwiftUI, if you come into problems or things that you don't understand or things that don't exist yet, it might be hard to actually continue because a lot of the problems are not things that we can solve, right? Because they either don't exist or they're above et cetera.

And so, whereas with UIKit, you can have way more support from the community because if you're learning and you're coming to roadblocks, most likely, most of us will be able to help you and help you continue on and understand that problem. And it will give you a better foundation so that when you do decide to learn SwiftUI, you can always fall back to UIKit.

“It's not either or, and I think a lot of the conversation sometimes is like either or, and it doesn't have to be either or. You can learn both and you can use both, but I highly recommend starting out with UIKit, building the foundation and then trying to explore and experiment with SwiftUI.”

If you only learn with SwiftUI and you're a junior developer, you don't have that UIKit foundation to fall back to. And the great thing about SwiftUI right now is you can use it with UIKit, right? You can use both. It's not either or, and I think a lot of the conversation sometimes is like either or, and it doesn't have to be either or. You can learn both and you can use both, but I highly recommend starting out with UIKit, building the foundation and then trying to explore and experiment with SwiftUI. And you can always fall back to UIKit if it doesn't work out.

Paul Hudson: I think at this point we are what, 10 years into UIKit? It's a mature framework now to the point where you could probably paste almost any error message into Google and get some results saying, here's my problem and then further down, here's how to fix it. In SwiftUI it's a clean slate. There's no ancient definitive answers to fall back on whatever – it's completely clean slate, so often you're the first person asking that question.

This transcript was recorded as part of Swiftly Speaking. You can watch the full original episode on YouTube, or subscribe to the audio version on Apple Podcasts.

Listen on Apple Podcasts

TAKE YOUR SKILLS TO THE NEXT LEVEL If you like Hacking with Swift, you'll love Hacking with Swift+ – it's my premium service where you can learn advanced Swift and SwiftUI, functional programming, algorithms, and more. Plus it comes with stacks of benefits, including monthly live streams, downloadable projects, a 20% discount on all books, and free gifts!

Find out more

Sponsor Hacking with Swift and reach the world's largest Swift community!

BUY OUR BOOKS
Buy Pro Swift Buy Pro SwiftUI Buy Swift Design Patterns Buy Testing Swift Buy Hacking with iOS Buy Swift Coding Challenges Buy Swift on Sundays Volume One Buy Server-Side Swift Buy Advanced iOS Volume One Buy Advanced iOS Volume Two Buy Advanced iOS Volume Three Buy Hacking with watchOS Buy Hacking with tvOS Buy Hacking with macOS Buy Dive Into SpriteKit Buy Swift in Sixty Seconds Buy Objective-C for Swift Developers Buy Beyond Code

Was this page useful? Let us know!

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.