title: UIImageView from URL rotation causes image to appear zoomed out? (Swift 5, Xcode 11)
body: <p>Hello Im using UIImageView to display an Image from URL. </p>
  
  <p>When downloaded and displayed the image is shown in full screen from left to right, but after rotating looks like its zoomed out, how can I fill it to full screen following rotation?</p>
  
  <p>Download Image Controller:</p>
  
  <pre><code>@IBOutlet weak var Image1: UIImageView!
  
  @IBOutlet weak var Image2: UILabel!
  
  var ImageStore: UIImage!
  
  let imageUrl = URL(string: "https://opengameart.org/sites/default/files/landscape_6.png")!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
  }
  @IBAction func Button(_ sender: Any)
  {
      downloadImage(with: imageUrl)
  }
  
  func downloadImage(with url: URL)
  {
      URLSession.shared.dataTask(with: url) { (data, response, error) in
          if error != nil {
              print(error!)
          }
          DispatchQueue.main.async {
              self.Image2.text = "Download Complete"
              self.ImageStore = UIImage(data: data!)
          }
      }.resume()
  }
  
  override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      let destinationViewController = segue.destination as! ChartAController
  
      destinationViewController.TransferImage = ImageStore
  }
  </code></pre>
  
  <p>Show Image and Rotate Controller:</p>
  
  <pre><code>    Chart1.image = TransferImage
      Chart1.transform = Chart1.transform.rotated(by: CGFloat(Double.pi / 2))
  </code></pre>
  
  <p>Result:</p>
  
  <p>Image Without Rotating stretched to edges:
  <a href="https://i.stack.imgur.com/Ju9Yu.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ju9Yu.jpg" alt="enter image description here"></a></p>
  
  <p>Image with rotations:
  <a href="https://i.stack.imgur.com/q3I8B.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q3I8B.jpg" alt="enter image description here"></a></p>