chore(Widget): Make font dynamic sizeable
This commit is contained in:
parent
3240a36013
commit
28e5a8fa90
|
@ -52,7 +52,7 @@ struct FollowersCountWidgetView: View {
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
|
|
||||||
Text(account.displayNameWithFallback)
|
Text(account.displayNameWithFallback)
|
||||||
.font(.system(size: 13))
|
.font(.system(size: UIFontMetrics.default.scaledValue(for: 13)))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ struct FollowersCountWidgetView: View {
|
||||||
Spacer()
|
Spacer()
|
||||||
if let increaseCount = followersHistory.increaseCountString(for: account) {
|
if let increaseCount = followersHistory.increaseCountString(for: account) {
|
||||||
Text("\(increaseCount) followers today")
|
Text("\(increaseCount) followers today")
|
||||||
.font(.system(size: 12))
|
.font(.system(size: UIFontMetrics.default.scaledValue(for: 12)))
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
|
@ -135,12 +135,12 @@ struct FollowersCountWidgetView: View {
|
||||||
HStack(alignment: .center) {
|
HStack(alignment: .center) {
|
||||||
Image("BrandIcon")
|
Image("BrandIcon")
|
||||||
Text("FOLLOWERS")
|
Text("FOLLOWERS")
|
||||||
.font(.system(size: 15, weight: .semibold))
|
.font(.system(size: UIFontMetrics.default.scaledValue(for: 15), weight: .semibold))
|
||||||
}
|
}
|
||||||
.padding(.top, 6)
|
.padding(.top, 6)
|
||||||
|
|
||||||
Text(account.followersCount.asAbbreviatedCountString())
|
Text(account.followersCount.asAbbreviatedCountString())
|
||||||
.font(.system(size: 43))
|
.font(.system(size: UIFontMetrics.default.scaledValue(for: 43)))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
}
|
}
|
||||||
|
@ -157,7 +157,7 @@ struct FollowersCountWidgetView: View {
|
||||||
Image("BrandIcon")
|
Image("BrandIcon")
|
||||||
|
|
||||||
Text(account.followersCount.asAbbreviatedCountString())
|
Text(account.followersCount.asAbbreviatedCountString())
|
||||||
.font(.system(size: 15))
|
.font(.system(size: UIFontMetrics.default.scaledValue(for: 15)))
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ struct LatestFollowersWidgetView: View {
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
}
|
}
|
||||||
|
|
||||||
Text(account.noteWithoutHtmlTags!)
|
Text(account.noteWithoutHtmlTags ?? "")
|
||||||
.font(.caption)
|
.font(.caption)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.truncationMode(.tail)
|
.truncationMode(.tail)
|
||||||
|
|
Loading…
Reference in New Issue