title: How to programitaclly change the Height/Width of an Image inside UIImageView created using Interface Builder?
body: <p>Here is the code: </p>
  
  <pre><code>  class ViewController: UIViewController {
  
   @IBOutlet weak var border: UIImageView!
  
  
    override func viewDidLoad() {
      super.viewDidLoad()
  
  
      let width = UIScreen.mainScreen().bounds.width
  
      let height = UIScreen.mainScreen().bounds.height
  
  
      border.image?.size.width = width
      border.image?.size.height = height
      }
  </code></pre>
  
  <p>but I got an error that says:</p>
  
  <blockquote>
    <p>cannot assign to property: size is a get only property</p>
  </blockquote>