mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Merge branch 'charlesmchen/transparentImages'
This commit is contained in:
commit
84b0f57c1a
|
@ -564,6 +564,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
// some performance cost.
|
||||
stillImageView.layer.minificationFilter = kCAFilterTrilinear;
|
||||
stillImageView.layer.magnificationFilter = kCAFilterTrilinear;
|
||||
stillImageView.backgroundColor = [UIColor whiteColor];
|
||||
[self addAttachmentUploadViewIfNecessary:stillImageView];
|
||||
|
||||
__weak OWSMessageBubbleView *weakSelf = self;
|
||||
|
@ -611,6 +612,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
// We need to specify a contentMode since the size of the image
|
||||
// might not match the aspect ratio of the view.
|
||||
animatedImageView.contentMode = UIViewContentModeScaleAspectFill;
|
||||
animatedImageView.backgroundColor = [UIColor whiteColor];
|
||||
[self addAttachmentUploadViewIfNecessary:animatedImageView];
|
||||
|
||||
__weak OWSMessageBubbleView *weakSelf = self;
|
||||
|
|
Loading…
Reference in a new issue