Skip to content

Commit

Permalink
Merge pull request #19 from yoat/master
Browse files Browse the repository at this point in the history
Implement iOS stretching fix
  • Loading branch information
triniwiz authored Jun 3, 2019
2 parents 2402f49 + 7c083ac commit 742f614
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 742f614

Please sign in to comment.