You can spend your first evening with Swift in three very different rooms: an iPad on the couch with Swift Playgrounds, an empty Xcode playground on a Mac, or a video course with a syllabus and a deadline. All three teach the same language. What changes is how much setup stands between you and your first print("hello"), and how far each one carries you before it runs out of road.
Three starting rooms, one language
Swift has one compiler and one core vocabulary. Constants and variables, optionals, structs, protocols, closures, error handling, and async/await look identical whether you type them on an iPad or in Xcode. So the decision is not about which option teaches "real Swift" — they all do. It's about which one you will actually sit down with for 20–30 minutes, five days a week, for the 8–10 weeks it takes to get comfortable with the core techniques.
Here is what each option really costs you in time, money, and gear.
Option 1: Swift Playgrounds on an iPad
Free from the App Store, but it needs iPadOS 17 or later, so a 2019-or-older iPad may be out. The built-in "Get Started with Code" lessons run about three hours end to end and walk you through variables, loops, functions, and types by having you tap and drag code and press Run.
The strength is friction: zero install, instant feedback, real Swift underneath. The ceiling is real too. Playgrounds handles single-view app projects, but there are no third-party packages, no version control, and no Instruments. That's plenty for your first four to six weeks, and then you'll feel the walls.
Choose this if: you don't own a Mac, you want to test-drive the language before spending anything, or you commute and want the practice to fit a bag.
Option 2: Xcode playgrounds on a Mac
Xcode 16 is free, but it requires macOS Sonoma 14.5 or later and roughly 40 GB of free disk space once the simulators are installed. Budget an evening for the download alone.
Once it's running, the path to a scratchpad is File > New > Playground, then the Blank macOS template. The results sidebar shows the value of every line as you type, which is the fastest feedback loop in the language. You're also working with the same compiler that ships App Store apps, including Swift 6's strict concurrency checking — so the errors you see are the errors you'll see later.
The downside is the temptation. Xcode sits you in front of SwiftUI previews and simulator builds, and beginners routinely spend month one dragging buttons around instead of learning what a struct is.
Choose this if: you own a Mac that can run current macOS, and you intend to build actual apps eventually.
Option 3: a paced course with a fixed syllabus
Paid beginner video courses run $20–$40, and free 100-day formats ask about an hour a day for a hundred days. You're paying for order and accountability: someone has decided that optionals come before closures and that you write a Codable struct in week four, not week nine.
The trap is passive watching. A course feels like progress while your hands stay still. The fix is a hard rule: every example gets retyped from a blank file, never copy-pasted, and you pause the video before the instructor writes the next line.
Choose this if: you've started three tutorials and finished none, or you want a deadline that isn't self-imposed.
The core techniques every option has to reach
Whichever room you pick, the same short list separates people who "know some Swift" from people who can build with it:
letversusvar. Default tolet. If the compiler says "cannot assign to value: 'x' is a 'let' constant," you meantvar.- Optionals.
Int?is notInt. Unwrap withif let,guard let, or the??operator, and treat!as a last resort that you should be able to justify. - Structs. Value types, copied on assignment. Changing a property inside a method requires
mutating func. - Protocols and extensions.
Codablefor JSON,Equatablefor comparison, and your own protocols for shared behavior. - Closures. Start with
sorted(by:)and trailing-closure syntax;[weak self]can wait. - Errors. An
enumconforming toError, athrowsfunction,do/catch, andtry?when you genuinely don't care why it failed. - Concurrency.
async/await,Task, and@MainActor— the minimum for calling anything networked.
If a path never gets you opening a blank file and writing a struct with a method, a protocol conformance, and a guard let unpacks, it's an appetizer, not a curriculum.
How to choose in five minutes
Answer three questions in order.
Do you have a Mac running macOS Sonoma 14.5 or later? If no, take Option 1 on an iPad, or install the free Swift toolchain from Swift.org on Windows 11 or Ubuntu 22.04 and work in a terminal with swift and swiftc. If yes, Xcode is your home base.
Have you abandoned a course before? If so, pair Option 3 with Option 2: the course supplies the order, the Xcode playground supplies the hands. Two hours a week of typing beats six hours of watching.
Do you want an app or do you want the language? If you want apps, Xcode from day one. If you want the language — and for the core techniques, that's the right goal — Playgrounds or a terminal REPL is enough, and it's less likely to distract you.
Switching options without starting over
None of these are permanent. Swift Playgrounds lessons transfer directly into an Xcode playground; the code is the same code. A course you outgrow becomes a reference you dip into for the chapter on generics. And an Xcode install that fights you is not a verdict on your aptitude — it's a macOS version problem, and the answer is usually an older Xcode from Apple's developer downloads page rather than a new laptop.
The one switch that costs you is the one made too often. Give whichever option you pick two weeks of five sessions before you judge it.
Tonight, before you decide anything else, write one line in whatever editor you can open fastest: let language = "Swift" and print it. The room matters less than the second session.