From 2913098e74454b6465dc4af80bba3376bd3533df Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 10 Jul 2024 20:25:09 -0700 Subject: [PATCH] Fix badges not appearing on gifv attachments Closes #507 --- Tusker/Views/Attachments/AttachmentView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Views/Attachments/AttachmentView.swift b/Tusker/Views/Attachments/AttachmentView.swift index 5b4353ca46..081f994068 100644 --- a/Tusker/Views/Attachments/AttachmentView.swift +++ b/Tusker/Views/Attachments/AttachmentView.swift @@ -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))