title: Swift - image quality loss after import
body: <p>I am having a problem with my images in Xcode. I always use SVGs and convert them to PDFs. There should be no pixels. Unfortunately my pictures lose a significant amount of quality after loading them in my app. </p>
  
  <p>The only thing I do is changing their <code>width/height</code> and I often make them a lot smaller than the actual image is. Here is a example:</p>
  
  <p><a href="https://i.stack.imgur.com/xNeRI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xNeRI.jpg" alt="enter image description here"></a></p>
  
  <p>Both logos are actually PDFs and perfect quality. The only thing I change is the size (while maintaining aspect ratio. Does anyone know why this quality loss occurs and how I can fix it ?</p>