Limit the custom status input to 30 characters. (#6139)

This commit is contained in:
Doug
2026-09-09 13:14:12 +01:00
committed by GitHub
parent 426fdc70a1
commit 8401c2612a
@@ -56,6 +56,11 @@ struct SettingsScreenUserStatusRow: View {
.textFieldStyle(.compound(.raised))
.focused($isCustomFieldFocused)
.onAppear(perform: focusCustomField)
.onChange(of: customText) { _, newValue in
if newValue.count > 30 {
customText = String(newValue.prefix(30))
}
}
.accessibilityLabel(L10n.screenSettingsUserStatusCustomHint)
.padding(.vertical, 3)