Swift Hello World

title: Hello World Swift

## Hello World

We only have to add the method print("Hello World") (from the library UIKit) to the function viewDidLoad() of the class ViewController:

import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. print("Hello World") } }

## Output:

>Hello World

This article needs improvement. You can help improve this article. You can also write similar articles and help the community.