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.