SALE: Save 50% on all my books and bundles >>

Don’t panic!

Paul Hudson    @twostraws   

Fully updated for Xcode 11.4

WWDC19 contains more large announcements than any in years, so if you’re looking at all the news and code coming out from San Jose and feeling like your head is spinning, let’s start with the most important thing: don’t panic.

Yes, I know SwiftUI is a massive new thing that might seem completely alien at first, but in this guide you’ll get lots of hands-on help to guide you through understanding how SwiftUI works so you can be up and running with it fast.

Everything you know about UIKit is still useful, and will be for a good few years.

Everything you know about Swift hasn’t changed, so that’s all useful.

Everything you know about the way iOS apps look and feel hasn’t changed.

What has changed is how we make our apps. Yes, there’s a lot of new things to learn, but once you’re past the basics you’ll start to recognize lots of common ground with UIKit.

So, again: don’t panic. If you’re already proficient with UIKit you can pick up SwiftUI in less than a day. And if you’re approaching SwiftUI without any knowledge of UIKit, that’s OK too because you’ll find SwiftUI gives you an unparalleled app building experience.

So, trust me: you’ve got this.

Before we start: Please make sure you have macOS 10.15 installed alongside Xcode 11. This combination allows you to see your SwiftUI designs previewed right inside Xcode, which is significantly faster than pushing to the simulator all the time.

Hacking with Swift is sponsored by RevenueCat

SPONSORED Building in-app subscriptions are hard – especially cross-platform. RevenueCat makes it simple. With their native SDKs, you can implement a custom subscription model for your app in hours, not months.

Explore the docs to learn more

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

Snapthread is a casual video editor and slideshow maker that makes discovering, compiling and sharing your favorite memories effortless.

BUY OUR BOOKS
Buy Pro Swift 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 (Vapor Edition) 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 Server-Side Swift (Kitura Edition) Buy Beyond Code

Was this page useful? Let us know!

Average rating: 4.5/5