Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Boilerplate code

override func viewDidLoad() {
    super.viewDidLoad()

    let myView = UIView()
    myView.backgroundColor = UIColor.blue
    myView.translatesAutoresizingMaskIntoConstraints = false
    view.addSubview(myView)

    // Add constraints code here
    // ...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Boilerplate #code
ADD COMMENT
Topic
Name
9+3 =