title: Make a UIView stick to bottom of the ViewController frame in Swift
body: <p>I have created a UIView (it's just a blue rectangle) and I want it to stick to the bottom of the frame/view of the screen. </p>
  
  <pre><code>var nextBar = UIView()
  
  nextBar.backgroundColor = UIColor(red: 7/255, green: 152/255, blue: 253/255, alpha: 0.5)
  nextBar.frame = CGRect(x: 0, y: 600, width: self.view.frame.width, height: 50)
  self.view.addSubview(nextBar)
  </code></pre>
  
  <p>I'm assuming i need to add something in after the 'y:' part in the CGRect, but i can't seem to make it work or find anywhere that shows me this in swift. </p>
  
  <p>Thanks in advance</p>