Fix emoji position on iOS 15
This commit is contained in:
parent
67cc55a08e
commit
3e93ced674
|
@ -29,6 +29,12 @@ final class AnimatedAttachmentLabel: UILabel, EmojiInsertable {
|
||||||
else { return }
|
else { return }
|
||||||
|
|
||||||
animatedAttachment.imageView.frame = imageBounds
|
animatedAttachment.imageView.frame = imageBounds
|
||||||
|
|
||||||
|
// iOS 15 needs this for some inexplicable reason
|
||||||
|
if #available(iOS 15, *) {
|
||||||
|
animatedAttachment.imageView.frame.origin.y -= font.lineHeight
|
||||||
|
}
|
||||||
|
|
||||||
animatedAttachment.imageView.contentMode = .scaleAspectFit
|
animatedAttachment.imageView.contentMode = .scaleAspectFit
|
||||||
|
|
||||||
if animatedAttachment.imageView.superview != self {
|
if animatedAttachment.imageView.superview != self {
|
||||||
|
|
Loading…
Reference in New Issue