How can I get the height and width of an uiimage?
Use the size
property on the UIImage instance. See the documentation for more details.
let heightInPoints = image.size.height
let heightInPixels = heightInPoints * image.scale
let widthInPoints = image.size.width
let widthInPixels = widthInPoints * image.scale