Skip to content

Instantly share code, notes, and snippets.

@behrank
Created November 12, 2019 19:45
Show Gist options
  • Save behrank/feda0033929e4d2ef59c4af69d3aa2db to your computer and use it in GitHub Desktop.
Save behrank/feda0033929e4d2ef59c4af69d3aa2db 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