SnyShah SnyShah - 1 year ago 57
Swift Question

How to get to know that UIImage is Squared Image?

How to get to know that selected image through UIImagePickerController is Squared Image ?

Answer Source

You can check Image Height and Width Like

if (imageViewObj.image.size.width  == imageViewObj.image.size.height) {
     NSLog(@"Image is Square");
}