fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@@ -0,0 +1,23 @@
---
title: View Controllers
---
## View Controllers
This is an example of what a basic view in Swift looks like.
```Swift
import UIKit
class ViewController: UIViewController {
// 1
override func viewDidLoad() {
// 2
super.viewDidLoad()
// 3
view.backgroundColor = .white
}
}
```
1. Loads view after the controller loads.
2. Overrides the UIViewController class. This is a necessary step for any view controller.
3. Sets background color to white.