Safe, fast, and expressive.
Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.
Our goals for Swift are ambitious: we want to make programming simple things easy, and difficult things possible.
let names = ["Anna", "Hassan", "Ryoko"]
for name in names {
print("Hello, \(name)!")
}
> Hello, Anna!
> Hello, Hassan!
> Hello, Ryoko!
Safe
Swift prioritizes safety and clarity, ensuring that code behaves in a safe manner while also promoting clear and concise programming practices.
Fast
Swift aims to replace C-based languages (C, C++, and Objective-C) and match their performance, while maintaining consistency and predictability.
Expressive
Swift builds upon decades of advancements in computer science, providing a modern syntax that is a joy to use.
-
Swift language announcements from WWDC22
-
Developer Spotlight: Porting Graphing Calculator from C++ to Swift
-
Exploring Swift: Property wrappers in the wild
-
Announcing the Language Workgroup
What's New
-
Swift 5.6.2
Tag: swift-5.6.2-RELEASE -
Swift 5.6.1
Tag: swift-5.6.1-RELEASE -
Swift 5.6
Tag: swift-5.6-RELEASE