title: How do you make a background image scale to screen size in swift?
body: <p>I'm trying to make a UIView image for my background in swift using pattern image. The code I have works well except for the fact that I want the image to take the whole screen. My code looks like this: <code>self.view.backgroundColor = UIColor(patternImage: UIImage(named: "backgroundImage")!)</code></p>
  
  <p>Does anyone know how to make the background an image that will take up the whole screen, and would scale when appearing on different iPhone screen sizes?</p>