From cd0d8fffcb66781a196481f956f734858d0db56e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 8 Jun 2024 11:28:19 -0700 Subject: [PATCH] Fix conversation thread links appearing above avatar when lifted by pointer --- Tusker/Views/Status/StatusCollectionViewCell.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Views/Status/StatusCollectionViewCell.swift b/Tusker/Views/Status/StatusCollectionViewCell.swift index 2e09a663..2d85c3ec 100644 --- a/Tusker/Views/Status/StatusCollectionViewCell.swift +++ b/Tusker/Views/Status/StatusCollectionViewCell.swift @@ -256,6 +256,7 @@ extension StatusCollectionViewCell { view.backgroundColor = .tintColor.withAlphaComponent(0.5) view.layer.cornerRadius = 2.5 view.layer.maskedCorners = [.layerMinXMaxYCorner, .layerMaxXMaxYCorner] + view.layer.zPosition = -1 prevThreadLinkView = view contentView.addSubview(view) NSLayoutConstraint.activate([ @@ -278,6 +279,7 @@ extension StatusCollectionViewCell { view.backgroundColor = .tintColor.withAlphaComponent(0.5) view.layer.cornerRadius = 2.5 view.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner] + view.layer.zPosition = -1 nextThreadLinkView = view contentView.addSubview(view) let bottomConstraint = view.bottomAnchor.constraint(equalTo: contentView.bottomAnchor)