NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

How to follow this quick start guide

Paul Hudson    @twostraws   

Updated for Xcode 12.5

This guide is called SwiftUI by Example, because it focuses particularly on providing as many examples as possible, with each one solving real problems you’ll face every day.

I have literally tried to structure this so that almost every entry starts with “How to…” because this is about giving you hands-on code you can use in your own projects immediately. That also means I’ve tried to get to the point as fast as possible and stay there, so if you’re looking for a longer, slower introduction to SwiftUI I’m afraid this isn’t it.

Already got some experience?

If you’ve already grabbed the basics of SwiftUI and just want code that solves your problems, by all means just jump in wherever interests you.

My code examples are specifically written for folks who are following along more or less linearly, so if you’re want to make those changes you may need to do a little light editing to make it fit your code.

Just starting out?

If you’re just starting out with SwiftUI you should read this guide in a roughly linear order – just keep reading and clicking Next until you’re done. As far as possible I’ve written the guide so that later chapters build on earlier ones, so a linear approach really is a good idea.

If this is you, you should start by creating a new iOS app using the App template. It doesn’t matter what you call it, but I would like you to make sure and select SwiftUI for your interface and SwiftUI App for your life cycle, otherwise the rest of this guide will be very confusing indeed.

Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

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

Similar solutions…

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.7/5

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.