From 61735f616552d87ffd266f475b970c8b74cdc125 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Sat, 6 Feb 2021 18:58:51 -0800 Subject: [PATCH] Fix vertical content hugging --- Views/UIKit/Content Views/StatusView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Views/UIKit/Content Views/StatusView.swift b/Views/UIKit/Content Views/StatusView.swift index 9fb727d..ad5695c 100644 --- a/Views/UIKit/Content Views/StatusView.swift +++ b/Views/UIKit/Content Views/StatusView.swift @@ -181,6 +181,7 @@ private extension StatusView { displayNameLabel.font = .preferredFont(forTextStyle: .headline) displayNameLabel.adjustsFontForContentSizeCategory = true displayNameLabel.setContentHuggingPriority(.required, for: .horizontal) + displayNameLabel.setContentHuggingPriority(.required, for: .vertical) displayNameLabel.setContentCompressionResistancePriority(.required, for: .horizontal) nameAccountTimeStackView.addArrangedSubview(displayNameLabel) @@ -188,6 +189,7 @@ private extension StatusView { accountLabel.adjustsFontForContentSizeCategory = true accountLabel.textColor = .secondaryLabel accountLabel.setContentHuggingPriority(.required, for: .horizontal) + accountLabel.setContentHuggingPriority(.required, for: .vertical) nameAccountTimeStackView.addArrangedSubview(accountLabel) timeLabel.font = .preferredFont(forTextStyle: .subheadline) @@ -195,6 +197,7 @@ private extension StatusView { timeLabel.textColor = .secondaryLabel timeLabel.textAlignment = .right timeLabel.setContentCompressionResistancePriority(.required, for: .horizontal) + timeLabel.setContentHuggingPriority(.required, for: .vertical) nameAccountTimeStackView.addArrangedSubview(timeLabel) nameAccountContainerStackView.spacing = .defaultSpacing