The swift starter checklist

At 9:10 on a Saturday, Maya opens a MacBook Air with one goal: make a 15-line Swift program print her packing list before 9:45. She does not start with an app icon, a storyboard, or a tutorial playlist. She opens Xcode and treats the first session as a checklist. She has not signed up for an Apple Developer account, and she does not need one for a playground. That is the fastest way to learn whether Swift fits your brain: finish one small, runnable thing, then decide what to learn next.

Check 1: Confirm the Mac runs Xcode 16 before you download it

Swift development on Apple platforms starts with Xcode, Apple's free IDE. Xcode 16 requires macOS Sonoma 14.5 or later, and the download is several gigabytes; set aside 45–60 minutes on home Wi-Fi. Check the version by choosing Apple menu > About This Mac, then install Xcode from the Mac App Store. If your Mac cannot run Xcode 16, use the free Swift Playgrounds app on an iPad for the first three checks; the syntax is the same, but you will not get the full Xcode debugger.

Cost check: Xcode costs $0. The Mac is the real expense. A used M1 Mac mini often costs $300–$450, which is enough for beginner Swift work. Do not buy a new machine before you have run one playground file. The free Apple Developer account is for device testing and App Store work, not for this checklist.

Check 2: Create a playground, not an app

Maya chooses File > New > Playground in Xcode, selects Blank, and names it PackingChecklist. A playground is a single .playground file that runs Swift code as you type. It skips the app target, bundle identifier, and signing settings that make a first Xcode project feel like a tax form. In Xcode 16 the Playground template opens with a live view pane on the right; ignore it for now.

Put the playground on your Desktop, not in a cloud folder that syncs every keystroke. Set a 20-minute timer. Your only job in this check is to see the words "Hello, Swift" in the results sidebar.

Check 3: Type five lines that prove the toolchain works

In the playground, type exactly this:

let name = "Maya"
var itemCount = 3
print("Hello, \(name)")
itemCount = itemCount + 1
print("Items: \(itemCount)")

Press Command-R if the playground does not auto-run. You should see "Hello, Maya" and "Items: 4" in the sidebar or console. Three rules are hiding in those five lines: let makes a constant, var makes a variable, and \( ) inserts a value into a string. Swift infers String for name and Int for itemCount, so you do not write the types yet.

If the code does not run, check for a straight quote instead of a curly quote, a missing parenthesis, or a capital P in print. Swift is case-sensitive. That is not a personality flaw; it is the first rule of the language.

Check 4: Add one optional and one default value

Maya's list has a missing item: a raincoat. In Swift, a value that might be absent is an optional. Add these two lines below the first block:

var raincoat: String? = nil
print(raincoat ?? "no raincoat")

The ? after String means the variable can hold a string or nil. The ?? operator supplies a fallback: "no raincoat." This is the smallest useful optional exercise because it matches a real packing problem. Do not force-unwrap with ! just to make the warning disappear. If you see "Value of optional type 'String?' must be unwrapped," use ?? with a sensible default or an if let check.

Checklist checkpoint: you have now used constants, variables, string interpolation, optionals, and a nil-coalescing operator. That is enough syntax for one sitting.

Check 5: Build the packing list with a struct and a loop

Now replace the practice lines with a tiny model. Type this in the playground:

struct Item {
    let name: String
    var packed: Bool
}

var items: [Item] = [
    Item(name: "charger", packed: false),
    Item(name: "notebook", packed: false),
    Item(name: "water bottle", packed: true)
]

for item in items {
    let status = item.packed ? "packed" : "missing"
    print("\(item.name): \(status)")
}

Run it. You should get three lines, with the water bottle marked packed. The struct groups related data; the array holds three Item values; the for loop visits each one; the ternary operator chooses "packed" or "missing." This is the core of a real Swift program without any interface code.

Maya's timer goes off at 9:35. She has a working console program, not an app. That is the correct size for a starter checklist.

Check 6: Change one Swift value and predict the console output

Before you close the playground, change packed: false to packed: true for the charger. Say the expected output aloud, then run it. Prediction is the difference between copying a tutorial and learning Swift. Next, add a fourth item with a name and a Boolean. Run again. If the output is not what you expected, read the first error line or the first wrong value, not the whole screen. If you cannot predict the output, shrink the change: swap one string, not three.

Keep the playground under 25 lines. If it grows past that, you are building a project, not completing a starter check. Save it as PackingChecklist.playground so you can reopen it tomorrow.

Check 7: Leave a Swift comment as your next-session assignment

At 9:45, Maya writes one sentence at the bottom of the playground as a comment: // Next: make a function that counts unpacked items. That is the whole assignment. A function such as func unpackedCount(in items: [Item]) -> Int is the natural next step because it uses the array and struct you already have. It does not require a new workspace, a paid course, or a project idea.

The starter checklist is done when you can open Xcode, create a playground, declare a constant and a variable, handle one optional, loop over an array of structs, and explain the output. That is a real foundation. The next session can add a function; the session after that can add a simple command-line input. Keep each session to one new concept and one runnable result.

Before you stop, delete nothing. Name the file clearly, note the Swift version in a comment if you care (// Xcode 16, Swift 6), and leave the last working run on screen. Add the date, too, so future-you knows which version ran. Beginners often lose momentum because they cannot find the file that worked. A starter checklist should leave a trail.