Clarify meaning of character counter

This commit is contained in:
Jed Fox 2022-11-06 20:51:43 -05:00
parent 7ac9e7c564
commit 022f8c1115
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1
1 changed files with 2 additions and 0 deletions

View File

@ -87,6 +87,8 @@ struct ComposeContentToolbarView: View {
Text("\(remains)") Text("\(remains)")
.foregroundColor(Color(isOverflow ? UIColor.systemRed : UIColor.secondaryLabel)) .foregroundColor(Color(isOverflow ? UIColor.systemRed : UIColor.secondaryLabel))
.font(.system(size: isOverflow ? 18 : 16, weight: isOverflow ? .medium : .regular)) .font(.system(size: isOverflow ? 18 : 16, weight: isOverflow ? .medium : .regular))
// TODO: i18n
.accessibilityLabel("\(remains) characters left")
} }
.padding(.leading, 4) // 4 + 12 = 16 .padding(.leading, 4) // 4 + 12 = 16
.padding(.trailing, 16) .padding(.trailing, 16)