Skip to content

Instantly share code, notes, and snippets.

@behrank
Created November 12, 2019 19:39
Show Gist options
  • Save behrank/58b81a894120ddb0c9c2ceeb2ab3232f to your computer and use it in GitHub Desktop.
Save behrank/58b81a894120ddb0c9c2ceeb2ab3232f to your computer and use it in GitHub Desktop.
import UIKit
import RacoonKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
//How to add subviews.
let firstView = UIView()
let secondView = UIView()
let thirdView = UIView()
let fourthView = UIView()
view.addSubviews(views: firstView, secondView, thirdView, fourthView)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment