Swift is Apple's programming language for apps on iPhone, iPad, Mac, Apple Watch, Apple TV and Vision Pro. Apple introduced it on June 2, 2014, open-sourced it on December 3, 2015, and as of October 17, 2026 the latest release on swift.org is Swift 6.4.1.
What Swift is
Swift is a compiled, general-purpose language. Apple introduced it on June 2, 2014, alongside the iOS 8 SDK and Xcode 6, as a new language for iOS and OS X (Apple Newsroom). Before that, apps were written in Objective-C, and the two languages still live side by side in one project.
On December 3, 2015, Apple published the language, its libraries, debugger and package manager as open source under the Apache 2.0 license (swift.org). The community has developed Swift on swift.org ever since, and Apple bundles each release into Xcode. Screens in a Swift app are built with SwiftUI or the older UIKit, which are libraries on top of the language.
Where Swift lives in Xcode
You don't install Swift separately, the compiler comes with Xcode. The version a project builds with is on the app target, under Build Settings › Swift Compiler - Language › Swift Language Version. Two things are easy to mix up here. Xcode has one compiler, while the language mode is chosen per target.
Xcode 27, for example, ships the Swift 6.4 compiler and can build code in Swift 6, Swift 5, Swift 4.2 and Swift 4 modes. An older project in Swift 5 mode builds with the new compiler without a rewrite. You can also check the compiler version in Terminal with xcrun swift --version.
Swift versions and dates
| What | Value |
|---|---|
| Introduced | June 2, 2014, with the iOS 8 SDK and Xcode 6 |
| Open source | December 3, 2015, Apache 2.0 with a Runtime Library Exception |
| Swift 6 | September 17, 2024, language mode with data-race checking |
| Swift 6.3 | March 24, 2026, first official Swift SDK for Android |
| Swift 6.4 | September 15, 2026 |
| Latest on swift.org | 6.4.1, as of October 17, 2026 |
| Compiler in Xcode 27 | Swift 6.4, language modes 6, 5, 4.2 and 4 |
| Compiler in Xcode 26.6 | Swift 6.3 |
Per swift.org, the Swift blog, the install page and the Xcode versions table, checked October 17, 2026.
Releases tied to a new Xcode arrive in September, like Swift 6 in 2024 and Swift 6.4 in 2026, with spring releases in between, like 6.3 in March 2026.
Swift 6 and data-race checking
A data race happens when two threads change the same data at the same moment. These bugs are hard to catch, since the app crashes once a week and never on your own phone. Swift 6 added a language mode where the compiler finds possible races and reports them as build errors (Announcing Swift 6, September 17, 2024).
The mode is opt-in and set per target, and migrated modules work alongside modules still in Swift 5 mode. The same checks were available earlier in Swift 5.10 as warnings, behind the -strict-concurrency=complete flag. Swift 6 also brought typed throws, where a function declares exactly which error type it throws, and a Synchronization library with atomic operations.
Where else Swift runs
Swift reaches well beyond Apple. With Swift 6 the language officially supports Ubuntu 24.04, Debian and Fedora and can build fully static Linux executables, and Windows got prebuilt arm64 toolchains. Swift 6.3 shipped the first official Swift SDK for Android, after swift.org opened nightly previews on October 24, 2025. In Swift 6.4, packages build the same way on Linux, macOS and Windows, and a WebAssembly SDK is available on swift.org (Swift 6.4 Released).
None of this changes the iPhone side. An App Store app is still built in Xcode on a Mac, more in the post on making an iOS app without a Mac.
How to start with Swift, step by step
- Install Xcode from the Mac App Store, and Swift comes with it.
- Create a project with File › New › Project › App, or a playground with File › New › Playground to try code without an app.
- Open the target's Build Settings and look at Swift Language Version, since it decides which checks the compiler runs.
- Write your first struct and run it in the simulator with Run.
- For an older project, move to Swift 6 one target at a time. Turn the checks on as warnings first, work through them, then switch the mode.
Common mistakes
- Treating Swift and SwiftUI as one thing. Swift is the language, SwiftUI is the UI framework built for it. Syntax questions and layout questions live in different documentation.
- Moving the whole project to Swift 6 at once. Hundreds of new errors in one build are hard to work through. The mode is set per target, so you can migrate module by module.
- Mixing up the compiler version and the language mode. Xcode 27 builds with the 6.4 compiler, but a project can still sit in Swift 5 mode and get none of the new checks.
- Expecting to build an iPhone app on Windows. Swift runs there, but Xcode and the iOS SDK exist only on the Mac.
Appto writes your app in Swift and SwiftUI in a regular Xcode project, walks through every screen in the simulator itself and fixes what it finds. You can check it by hand in the simulator, on your iPhone or through TestFlight, more on the code page.
Questions
Is Swift a language or a framework?
A programming language. Frameworks such as SwiftUI and UIKit are written for it and added to a project separately.
What is the latest version of Swift?
As of October 17, 2026, swift.org lists 6.4.1. Swift 6.4 came out on September 15, 2026.
Which Swift version ships with Xcode 27?
The Swift 6.4 compiler, with Swift 6, 5, 4.2 and 4 language modes. Xcode 26.6 has Swift 6.3 (Xcode versions table, October 17, 2026).
Is Swift free?
Yes. It has been open source under the Apache 2.0 license since December 3, 2015, and Xcode with the compiler is free in the Mac App Store.
Can I use Swift for Android or Windows?
Yes. Windows has prebuilt Swift toolchains, and the first official Swift SDK for Android shipped with Swift 6.3 in March 2026.
Build your own app in Appto
Appto checks the niche on fresh App Store data, designs the screens, writes the code, builds the App Store page and submits to Apple from your account or shows you what to press in App Store Connect. Runs on your own Claude Code or Codex.
Download for Mac