From 2aede8d461e77c1ecfcb92804b47f7bdad32a7a8 Mon Sep 17 00:00:00 2001 From: CMK Date: Wed, 30 Jun 2021 15:51:05 +0800 Subject: [PATCH] fix: post visibility icon layout issue --- Mastodon/Scene/Share/View/Content/StatusView.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mastodon/Scene/Share/View/Content/StatusView.swift b/Mastodon/Scene/Share/View/Content/StatusView.swift index c647a6463..2b51f028d 100644 --- a/Mastodon/Scene/Share/View/Content/StatusView.swift +++ b/Mastodon/Scene/Share/View/Content/StatusView.swift @@ -353,7 +353,9 @@ extension StatusView { nameTrialingDotLabel.setContentCompressionResistancePriority(.required - 2, for: .horizontal) dateLabel.setContentHuggingPriority(.defaultHigh, for: .horizontal) dateLabel.setContentCompressionResistancePriority(.required - 1, for: .horizontal) - visibilityImageView.setContentHuggingPriority(.defaultHigh + 3, for: .horizontal) + visibilityImageView.setContentHuggingPriority(.required - 1, for: .horizontal) + visibilityImageView.setContentHuggingPriority(.required - 1, for: .vertical) + visibilityImageView.setContentCompressionResistancePriority(.required - 1, for: .horizontal) // subtitle container: [username] let subtitleContainerStackView = UIStackView()