SnyShah SnyShah - 8 months ago 36
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");
}