I have been able to convert a QR code I have generated from a CIImage to UIImage.
However, the resulting UIImage does not have a set aspect ratio.
So, if you put it into a UIImageView with an aspect ratio which isn't 1:1, even if the content mode is set to aspect fit, it stretches the QR code out of proportion.
How can I can convert this QR code to UIImage in such a way that it will hold its aspect ratio if the container view asks for it?