I have a simple UIImage that I want as a map annotation. The original image is 300x500 but I want it down to 20*26.
var img = UIImage(named: "annotation")
img.size.width = 20
This gives me a "Cannot assign to property: 'size' is a get-only property" error.
How can I resize a UIImage without embedding it in any views? (Map annotations are strictly UIImages)
Thank you.