SnyShah SnyShah - 5 months ago 11
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

You can check Image Height and Width Like

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