Fix badges not appearing on gifv attachments

Closes #507
This commit is contained in:
Shadowfacts 2024-07-10 20:25:09 -07:00
parent ce99352e90
commit 2913098e74
1 changed files with 2 additions and 0 deletions

View File

@ -380,6 +380,8 @@ class AttachmentView: GIFImageView {
self.badgeContainer = stack
stack.axis = .horizontal
stack.spacing = 2
// badges should appear on top of any subsequently added views (e.g., gifv)
stack.layer.zPosition = 100
stack.translatesAutoresizingMaskIntoConstraints = false
let font = UIFontMetrics(forTextStyle: .caption1).scaledFont(for: .systemFont(ofSize: 13, weight: .bold))