Swift

Swift is a high-level programming language developed by Apple and made available in 2014. It is designed for writing apps for Apple platforms, including macOS, iOS, tvOS, and watchOS.

The Swift language is based on Objective-C, which was used for NeXTSTEP development in the 1980s, and later macOS and iOS. Swift has similar syntax and maintains the object-oriented features of Objective-C, but provides a more simplified programming experience. For example, Swift code is easier to read and write than Objective-C. It allows several common commands to be combined and does require semicolons (;) at the end of each statement.

Additionally, Swift handles several programming obstacles automatically. For example, Swift:

  1. initializes variables before they are used
  2. handles "nil" (NULL) values explicitly
  3. ensures array indices are in bounds
  4. prevents integers from overflowing their allotted memory
  5. manages memory automatically

Apple's Xcode software development IDE has supported Swift since version 6 (released in 2014). Xcode also supports "Swift Playgrounds," a feature that allows programmers to edit Swift code and see the results immediately. For example, the playground may display the source code on the left and an app simulator on the right. Changes to the code update the app simulation on-the-fly. Several playgrounds are included with Xcode to provide an easy way to learn the language.

Since Apple develops and maintains the Swift language, it is optimized for Apple hardware. Therefore an iOS app developed in Swift may perform better than a similar app developed in another language. Apple also updates Swift with new features on a regular basis. This allows developers programming in Swift to take advantage of the latest advances in Macs, iPhones, iPads, and other Apple products.

File extension: .SWIFT

Updated July 8, 2017 by Per C.

quizTest Your Knowledge

The H.265 video codec is also known by what name?

A
Advanced Video Coding (AVC)
0%
B
Versatile Video Coding (VVC)
0%
C
Internet Video Coding (IVC)
0%
D
High Efficiency Video Coding (HEVC)
0%
Correct! Incorrect!     View the H.265 definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Swift on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.