0Pricing
SwiftUI Academy · Lesson

Installing Xcode & Creating a Project

Set up Xcode and spin up a new SwiftUI app template.

Installing Xcode & Creating a Project is a free SwiftUI Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the SwiftUI Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Meet Xcode

To build iOS apps you need Xcode, Apple's free app for writing, running, and shipping software. It is your home base for everything SwiftUI. 🛠️

You Need a Mac

Xcode runs only on macOS. You build, preview, and test iOS apps right on your Mac, so a recent macOS version is the one real requirement here.

Get It Free

Open the Mac App Store, search for Xcode, and install it. It is a large download, so grab a coffee while it sets up the iOS tools for you. ☕

First Launch

The first time you open Xcode it installs command line tools and simulators. Let it finish once, and future launches will be quick.

Start a New Project

From the welcome window choose Create a new Xcode project. This wizard scaffolds a complete, runnable app for you in just a few clicks.

Pick the App Template

Under the iOS tab, select the App template. It is the standard starting point for a normal SwiftUI iPhone app.

Name Your App

Enter a Product Name like MyFirstApp. This becomes your app's display name and the name of the project folder Xcode creates.

Choose SwiftUI

Set the Interface option to SwiftUI, not Storyboard. This tells Xcode you want to design your screens with Swift code and live previews.

Save the Project

Pick a folder and click Create. Xcode generates a working app and opens it in the project navigator on the left side of the window.

Find ContentView

In the navigator, open ContentView.swift. This is the file holding your app's first screen, and the place you will edit next.

struct ContentView: View {
    var body: some View {
        Text("Hello, world!")
    }
}

Hello, World!

That generated Text view shows the classic Hello, world! message. You already have a real, runnable app before writing a single line yourself. 🎉

Quick Check

When creating the project, which Interface option do you pick for SwiftUI?

Recap

You installed Xcode, created an App project with the SwiftUI interface, and opened ContentView. Your first iOS app is ready to run. 🚀

Frequently asked questions

Is the “Installing Xcode & Creating a Project” lesson free?

Yes — the full text of “Installing Xcode & Creating a Project” is free to read here on the web, and the SwiftUI Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the SwiftUI Academy course, upgrade to CoddyKit PRO.

What will I learn in “Installing Xcode & Creating a Project”?

Set up Xcode and spin up a new SwiftUI app template. You practise SwiftUI Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start SwiftUI Academy?

No prior experience is required. SwiftUI Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Installing Xcode & Creating a Project” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this SwiftUI Academy lesson?

Yes. Every SwiftUI Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Installing Xcode & Creating a Project
  2. Anatomy of a SwiftUI App File
  3. The Live Preview Canvas
  4. Running on Simulator & Device
← Back to SwiftUI Academy