From 3e14b9b6c5c25f7478850bd47f5d8ae258dd77ee Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Tue, 25 Apr 2023 10:53:41 +0200 Subject: [PATCH] Give display priority to Display name over Username (IOS-140) --- MastodonSDK/Sources/MastodonUI/View/Content/UserView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/UserView.swift b/MastodonSDK/Sources/MastodonUI/View/Content/UserView.swift index 2d6150585..10c70dd21 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/UserView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/UserView.swift @@ -156,7 +156,7 @@ extension UserView { authorNameLabel.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal) authorUsernameLabel.setContentCompressionResistancePriority(.required - 1, for: .vertical) - authorUsernameLabel.setContentCompressionResistancePriority(.defaultHigh, for: .horizontal) + authorUsernameLabel.setContentCompressionResistancePriority(.defaultHigh - 1, for: .horizontal) labelStackView.addArrangedSubview(nameStackView)