Why is the image being stretched and compressed when the missing constraints are being added?
I add the missing constraints, but the image is being stretched and compressed. How do I fix it so the image will be have the same size?
Use content mode
contentMode = UIViewContentModeScaleAspectFit
adding a constraint by xcode it would be change according to view so give your constraint for top and bottom
for swift Somewhat confusingly, Swift drops the prefix for ObjC enum values:
imageView.contentMode = .ScaleAspectFill