Skip to content

Commit

Permalink
Set the popup bar's image view content mode to aspect fit.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoNatan authored Jan 1, 2017
1 parent 12118ab commit 5a6bd30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LNPopupController/LNPopupController/Private/LNPopupBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ - (nonnull instancetype)initWithFrame:(CGRect)frame

_imageView = [UIImageView new];
_imageView.autoresizingMask = UIViewAutoresizingNone;
_imageView.contentMode = UIViewContentModeScaleAspectFit;
_imageView.accessibilityTraits = UIAccessibilityTraitImage;
_imageView.isAccessibilityElement = YES;
_imageView.layer.cornerRadius = 3;
Expand Down

0 comments on commit 5a6bd30

Please sign in to comment.