title: Swift 3 how to make background image fill the entire UIView?
body: <p>I've created one UIView and change the background image to it by using the following code</p>
  
  <pre><code>slot1_view?.backgroundColor = UIColor(patternImage: UIImage(named: "drum_cut.png")!)
  </code></pre>
  
  <p>It's working fine on iphone but on ipad the background image become repeated.</p>
  
  <p>How can I change its contentmode to something the fill the entire UIView?</p>
  
  <p>Please help!!!!</p>