Skip to content

Commit

Permalink
Implement iOS stretching fix per #16 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoat committed Jun 3, 2019
1 parent 2402f49 commit 7c083ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/image-zoom.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ImageZoom extends ImageZoomBase {
public createNativeView() {
this._image = UIImageView.new();
this._image.clipsToBounds = true;
this._image.contentMode = UIViewContentMode.ScaleAspectFit;
const nativeView = UIScrollView.new();
nativeView.addSubview(this._image);
nativeView.zoomScale = this.zoomScale;
Expand Down

0 comments on commit 7c083ac

Please sign in to comment.