Fix UserView follower count label not supporting dynamic type (IOS-140)

This commit is contained in:
Marcus Kida 2023-05-09 15:47:03 +02:00
parent 496be0c4df
commit b8744c24fc
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40
1 changed files with 2 additions and 2 deletions

View File

@ -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)