title: Cannot assign to property: 'size' is a get-only property Swift
body: <p>I am trying to retrieve an image from URL and I do not know why my image is so huge, I tried to resize my frame but it's of no use. I am thinking to resize my image but it shows </p>
  
  <p><code>"Cannot assign to property: 'size' is a get-only property"</code></p>
  
  <p>My code for resizing that I used is:</p>
  
  <pre><code>if let ImageUrl = message.imageUrlLink {
  
    receivedimg.frame.size = CGSize(width: 150, height: 150)
    receivedimg.image?.size = CGSize(width: 150, height: 150) // error shown here
    self.receivedimg.loadImageUsingCacheWithUrlString(ImageUrl)
  }
  </code></pre>
  
  <p>and the output was 
  <a href="https://i.stack.imgur.com/gq8gI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gq8gI.png" alt="enter image description here"></a></p>
  
  <p>Am I resizing it wrongly?</p>