Swift Playgrounds on Windows? What works instead (2026)
Swift Playgrounds isn't on Windows, but you can still learn Swift there. What Apple's app runs on, how to set up Swift on a PC, and how to see SwiftUI run.

By Sigsten Gustavii· · 8 min read
Build your own flashcard app with Borel
Build this appSwift Playgrounds doesn't run on Windows. Apple makes it for iPad and Mac only, and there's no Windows version or official web version. You can still learn the Swift language on a Windows PC with the free toolchain from swift.org, but building and seeing iPhone screens needs Apple's tools, which live on a Mac or an iPad.
This guide answers the two questions people search together: whether Swift Playgrounds works on Windows, and whether you can learn Swift on Windows at all. It covers what each route teaches you, how to install Swift on a PC step by step, what stays out of reach on Windows, and how to see real SwiftUI apps run without a Mac.
Is Swift Playgrounds available on Windows?
No. Apple's page for the app, now called Swift Playground, describes it as an app for iPad and Mac. It's on the App Store for both, and the Mac version is built from the iPad one, so the two share projects through iCloud Drive. There is no Windows app, no download for PC and no browser version from Apple.
That's a shame, because it's an unusually friendly way to start. It teaches coding with puzzles and lessons, shows the result of your code as you type, and moves on to building real apps with SwiftUI. Apple says you can even submit an app made in it to App Store Connect.
Can I learn Swift on Windows?
Yes. Swift is open source, and the Swift project publishes an official toolchain for Windows. With it you write, build and run real Swift programs on your PC: the same language, the same syntax and the same standard library as on a Mac. The current release on swift.org's download page, read on 16 November 2026, is Swift 6.4.
| Windows PC | iPad | Mac | |
|---|---|---|---|
| The Swift language | Yes, with swift.org's toolchain | Yes, in Swift Playground | Yes |
| Guided lessons from Apple | No | Yes, in Swift Playground | Yes, in Swift Playground |
| SwiftUI and iPhone screens | No | Yes, in Swift Playground | Yes, in Xcode or Swift Playground |
| The iOS Simulator | Only streamed from a Mac | No | Yes, in Xcode |
| Publishing an app | Through a service with a Mac | Yes, from Swift Playground | Yes, from Xcode |
The top row is the important one for a beginner. Variables, loops, functions, structures, enums, optionals and error handling are the bulk of learning Swift, and all of them work the same on Windows.
How do you install Swift on Windows?
The swift.org Windows page walks through it. In short:
- Open PowerShell from the Start menu. You'll paste two commands from swift.org's page.
- Install Windows' build tools. The opening command uses WinGet, Windows' built-in package manager, to install Visual Studio 2022 Community with the Windows SDK and C++ tools that Swift relies on.
- Install Swift. The second WinGet command installs the Swift toolchain itself. swift.org also offers a regular installer if you prefer clicking.
- Install Visual Studio Code and its Swift extension, which swift.org recommends for code completion, debugging and tests.
- Make your opening project. In a new folder, swift.org's page shows how to create a small command-line program and run it.
mkdir MyCLI
cd MyCLI
swift package init --name MyCLI --type executable
swift run MyCLIIf those lines print a greeting, you have a working Swift setup. Everything from there is learning the language.
What can't you do with Swift on Windows?
The Swift language comes to Windows, but Apple's app frameworks don't. That leaves three things out:
- SwiftUI. Apple's framework for screens is part of its own platforms' SDKs, which come with Xcode. The Windows toolchain doesn't include it, so SwiftUI code won't build on a PC.
- The iOS Simulator. Apple's pretend iPhone runs inside Xcode on macOS.
- Building an iPhone app. Compiling, signing and uploading an app to Apple all happen in Xcode on a Mac.
So Windows is a good place to learn Swift and a poor place to learn iPhone app screens. Many people spend weeks on the language on a PC before they need the screens.
What are the alternatives to Swift Playgrounds on Windows?
Depending on what you liked about Swift Playgrounds, there are four ways to get close to it:
- Swift plus Visual Studio Code. The closest to real development on a PC: a proper editor with Swift's language server and debugger. No lessons built in, so pair it with a book or a course.
- Swift Playground on an iPad. If anyone in the house has an iPad, Apple's app runs on it, lessons and all, and builds real SwiftUI apps.
- A Mac, borrowed or rented. Swift Playground and Xcode both run on any recent Mac. Our guide to the cheapest Mac for iOS development covers what's enough.
- Reading real SwiftUI apps. An AI app builder that writes Swift shows you complete apps and their code, which is a quick way to learn how screens are put together.
How do you learn Swift on Windows, step by step?
A plan that works for most beginners, with no Mac until you want one:
- Install Swift and VS Code as above, and run the example program.
- Learn the basics in small programs. Variables, conditions, loops, functions. Write a tip calculator, a number-guessing game, a to-do list that prints to the screen.
- Move to structures and enums. These are how Swift apps describe their data: a recipe, a workout, a book.
- Learn optionals and errors. They trip up every newcomer, and every real app uses them.
- Read SwiftUI code. Even if you can't build it on Windows, reading it shows how your structures become screens.
- See your screens run. Use an iPad, a Mac or a streamed simulator to watch SwiftUI code come alive.
Our post on whether to learn Swift in 2026 covers whether the effort pays off now that AI writes code, and what language iPhone apps are written in explains where Swift sits among the others.
What can you build to practise Swift on Windows?
Small command-line programs teach the language without needing SwiftUI. Each of these fits in an evening and uses a different part of Swift:
- A tip calculator that reads a bill and a percentage and prints each person's share: numbers and formatting.
- A number-guessing game that tells you higher or lower: loops, conditions and random numbers.
- A to-do list saved to a file: arrays, structures and reading and writing files.
- A word counter for a text file: strings, dictionaries and sorting.
- A small quiz with questions in a list: enums, optionals and a score.
- A unit converter with tests: functions, errors and Swift's test tools.
Every one of these becomes the logic of a real iPhone app later. A tip calculator with a screen is a tip calculator app; the code underneath stays the same.
How can you see SwiftUI apps run on a Windows PC?
This is the step Windows can't do alone, and it's where [Borel](/ai-swiftui-app-builder) helps even if you're learning. You describe an app in plain words, Borel writes it in Swift and SwiftUI, builds it with Xcode on its own Mac and runs it in Apple's iOS Simulator, streamed to your browser on Windows. The Simulator is free for everyone, and building starts with 5 credits a day.
- Watch screens appear from code. Ask for a list, a form or a chart, then read the SwiftUI that made it.
- Change one thing at a time. Ask Borel to move a button or rename a field, and compare the code before and after.
- Take the code with you. You can download your app's SwiftUI source, with an XcodeGen project.yml, and study it in VS Code on your PC.
- See it on your iPhone with Borel Companion for Windows, on Pro.
It isn't a course, and it won't replace writing code yourself. It fills the gap a Windows PC leaves: seeing real SwiftUI run on a real iPhone simulator.
Should you buy a Mac to learn Swift?
Not at the start. The language itself works on Windows, and an iPad or a streamed simulator covers the screen side for a while. Buy a Mac when you want to build and publish your own apps in Xcode every day, or when you're aiming for a job as an iOS developer, where Xcode is the daily tool. If you only want an app, not the skill, an AI builder gets you there without one: see making iOS apps on Windows for every route.
The bottom line
Swift Playgrounds isn't on Windows, and Apple has no web version of it. Swift itself is: install it from swift.org, write it in Visual Studio Code, and learn the language on your PC. For SwiftUI and the iOS Simulator you need Apple's tools, on a Mac, an iPad, or streamed from a Mac. To watch your own SwiftUI app run in your browser on Windows today, try Borel free.
Questions people ask
Is Swift Playgrounds available for Windows?
No. Apple's Swift Playground, often still called Swift Playgrounds, runs only on iPad and Mac. There's no Windows or web version from Apple.
Can I learn Swift on Windows?
Yes. swift.org publishes an official Swift toolchain for Windows, installed with WinGet, and recommends Visual Studio Code with the Swift extension. You can learn the whole language on a PC.
Can I use SwiftUI on Windows?
No. SwiftUI comes with Apple's platform SDKs in Xcode, and the Windows toolchain doesn't include it. You can read and write SwiftUI on a PC, but it builds and runs on a Mac or an iPad.
Is there an online version of Swift Playgrounds?
Not from Apple. Swift Playground is an app for iPad and Mac. To see SwiftUI run from a browser, a service that streams a Mac's iOS Simulator, such as Borel, is the closest thing.
Can I make an iPhone app on Windows with Swift?
Not with the Windows toolchain alone, because building iPhone apps needs Xcode on a Mac. An AI app builder that builds on its own Mac, like Borel, makes native Swift apps from a Windows PC.
Is Swift free on Windows?
Yes. Swift is open source, and swift.org's Windows toolchain and the Swift extension for Visual Studio Code cost nothing to download and use.
Does Xcode run on Windows?
No. Xcode, with SwiftUI's previews and the iOS Simulator, runs only on macOS. On Windows you write Swift in Visual Studio Code and build iPhone apps elsewhere.
Does Swift Playground work on an iPad?
Yes. It runs on iPad and Mac, teaches Swift with lessons, builds SwiftUI apps, and Apple says it can submit an app to App Store Connect.
I learned the most from reading code that did something I wanted, which is part of why Borel lets you download every app's Swift. Learn the language on any computer you have.
– Sigsten
Build your own flashcard app
Your idea is already written. Press the button, read it, change anything, and Borel builds it, free to start.
A flashcard app for learning Swift: each card has a question about the language on the front and a short answer with a code example on the back, and it shows me the cards I get wrong more often.Build this app