Clean up ahead of PR.

pull/1/head
Matthew Chen
parent 0c76e1c02d
commit cfcb6cb15b

@ -20,7 +20,8 @@ public class ConversationMediaView: UIView {
super.init(frame: .zero) super.init(frame: .zero)
self.backgroundColor = .white backgroundColor = Theme.offBackgroundColor
clipsToBounds = true
createContents() createContents()
} }
@ -63,7 +64,7 @@ public class ConversationMediaView: UIView {
// some performance cost. // some performance cost.
animatedImageView.layer.minificationFilter = kCAFilterTrilinear animatedImageView.layer.minificationFilter = kCAFilterTrilinear
animatedImageView.layer.magnificationFilter = kCAFilterTrilinear animatedImageView.layer.magnificationFilter = kCAFilterTrilinear
animatedImageView.backgroundColor = .white animatedImageView.backgroundColor = Theme.offBackgroundColor
addSubview(animatedImageView) addSubview(animatedImageView)
animatedImageView.autoPinEdgesToSuperviewEdges() animatedImageView.autoPinEdgesToSuperviewEdges()
// [self addAttachmentUploadViewIfNecessary]; // [self addAttachmentUploadViewIfNecessary];
@ -107,7 +108,7 @@ public class ConversationMediaView: UIView {
// some performance cost. // some performance cost.
stillImageView.layer.minificationFilter = kCAFilterTrilinear stillImageView.layer.minificationFilter = kCAFilterTrilinear
stillImageView.layer.magnificationFilter = kCAFilterTrilinear stillImageView.layer.magnificationFilter = kCAFilterTrilinear
stillImageView.backgroundColor = .white stillImageView.backgroundColor = Theme.offBackgroundColor
addSubview(stillImageView) addSubview(stillImageView)
stillImageView.autoPinEdgesToSuperviewEdges() stillImageView.autoPinEdgesToSuperviewEdges()
// [self addAttachmentUploadViewIfNecessary]; // [self addAttachmentUploadViewIfNecessary];
@ -150,7 +151,7 @@ public class ConversationMediaView: UIView {
// some performance cost. // some performance cost.
stillImageView.layer.minificationFilter = kCAFilterTrilinear stillImageView.layer.minificationFilter = kCAFilterTrilinear
stillImageView.layer.magnificationFilter = kCAFilterTrilinear stillImageView.layer.magnificationFilter = kCAFilterTrilinear
stillImageView.backgroundColor = .white stillImageView.backgroundColor = Theme.offBackgroundColor
addSubview(stillImageView) addSubview(stillImageView)
stillImageView.autoPinEdgesToSuperviewEdges() stillImageView.autoPinEdgesToSuperviewEdges()

@ -24,7 +24,7 @@ public class MediaGalleryCellView: UIStackView {
super.init(frame: .zero) super.init(frame: .zero)
self.backgroundColor = .white backgroundColor = Theme.offBackgroundColor
createContents(maxMessageWidth: maxMessageWidth) createContents(maxMessageWidth: maxMessageWidth)
} }

Loading…
Cancel
Save