-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOS-8946 Remove eye feature #399
Conversation
tureck1y
commented
Jan 23, 2025
•
edited
Loading
edited
- удален глазик
if shouldBecomeFirstResponder { | ||
setFocus(for: isSecured) | ||
SecureField("", text: text, onCommit: onCommit) | ||
.textContentType(.oneTimeCode) // to prevent passwords suggestion. Tested on ios 15-18 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
интересно, что сработало только это, пробовал username, пустую строку
SecureField("", text: text, onCommit: onCommit) | ||
.textContentType(.oneTimeCode) // to prevent passwords suggestion. Tested on ios 15-18 | ||
.focused($focusedField, equals: .secure) | ||
.keyboardType(.asciiCapable) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не опасно ли это сейчас менять? а если кто-то задал код кириллицей или ещё чем-то другим, они же не смогут его ввести? Не чекал этот кейс?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
да, ты прав, я откачу это и правку c textContentType, потому что предлагается ввести OTP, если он есть, т.к. apple не усеет понимать от какого приложения код
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
может стоит сделать задание .keyboardType
извне и для задания нового пароля уже поставить .ascii
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
зачем, нам нет смысл ограничивать пароль как-либо кроме policy на количество знаков и тп