
***

# Swift (programming language)

[Go back (WacOS/Wiki/)](https://github.com/seanpm2001/WacOS/wiki)

![Image](https://upload.wikimedia.org/wikipedia/commons/9/9d/Swift_logo.svg)

The icon for swift programming language [view it here](https://github.com/seanpm2001/WacOS/blob/master/Graphics/Swift/Swift_logo.svg)

Swift is a general purpose programming language made by Apple inc. on June 2nd 2014. It is used on all new Apple products, and was influenced by several languages, including Objective-C, Rust, Haskell, Ruby, Python, C#, CLU, and D. 

The latest stable version of Swift (as of 2021, Tuesday September 14th at 2:41 pm) is 5.4.3.

## Hello world program

For version 1.x Swift.

```swift
println("Hello world")
```

For version 2.x and above Swift

```swift
print("Hello world")
```

[Source: RosettaCode](http://rosettacode.org/wiki/Hello_world/Text#Swift)

## Use by Apple

Swift is used in all modern Apple products, including MacOS, iOS, iPadOS, TvOS, watchOS, and z/OS. It uses Apples CocoaTouch API.

Swift is an open source language, and due to its usage on Apple products, it is also used in the WacOS project.

_This article on programming languages is a stub. You can help by expanding it!_

***

## Article info

**Written on:** `2020 May 27th at 2:14 pm)`

**Last revised on:** `2021, Tuesday September 14th at 2:41 pm)`

**File format** `Markdown document (*.md *.mkd *.markdown)`

**Article version:** `3 (2021, Tuesday September 14th at 2:41 pm)`

***

