From b8744c24fcf1ba0310c080823a9f2c0b67cf837b Mon Sep 17 00:00:00 2001 From: Marcus Kida Date: Tue, 9 May 2023 15:47:03 +0200 Subject: [PATCH] Fix UserView follower count label not supporting dynamic type (IOS-140) --- .../Sources/MastodonUI/View/Content/UserView+ViewModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/UserView+ViewModel.swift b/MastodonSDK/Sources/MastodonUI/View/Content/UserView+ViewModel.swift index 6d1d26ea5..0cc222ba0 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/UserView+ViewModel.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/UserView+ViewModel.swift @@ -91,8 +91,8 @@ extension UserView.ViewModel { return } userView.authorFollowersLabel.attributedText = NSAttributedString( - format: NSAttributedString(string: L10n.Common.UserList.followersCount("%@"), attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .regular)]), - args: NSAttributedString(string: Self.metricFormatter.string(from: count) ?? count.formatted(), attributes: [.font: UIFont.systemFont(ofSize: 15, weight: .bold)]) + format: NSAttributedString(string: L10n.Common.UserList.followersCount("%@"), attributes: [.font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .regular))]), + args: NSAttributedString(string: Self.metricFormatter.string(from: count) ?? count.formatted(), attributes: [.font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .bold))]) ) } .store(in: &disposeBag)