Skip to content
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

Merged
merged 4 commits into from
Jan 28, 2025
Merged

IOS-8946 Remove eye feature #399

merged 4 commits into from
Jan 28, 2025

Conversation

tureck1y
Copy link
Collaborator

@tureck1y tureck1y commented Jan 23, 2025

  • удален глазик

@tureck1y tureck1y requested a review from a team as a code owner January 23, 2025 18:59
if shouldBecomeFirstResponder {
setFocus(for: isSecured)
SecureField("", text: text, onCommit: onCommit)
.textContentType(.oneTimeCode) // to prevent passwords suggestion. Tested on ios 15-18
Copy link
Collaborator Author

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не опасно ли это сейчас менять? а если кто-то задал код кириллицей или ещё чем-то другим, они же не смогут его ввести? Не чекал этот кейс?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, ты прав, я откачу это и правку c textContentType, потому что предлагается ввести OTP, если он есть, т.к. apple не усеет понимать от какого приложения код

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

может стоит сделать задание .keyboardType извне и для задания нового пароля уже поставить .ascii?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

зачем, нам нет смысл ограничивать пароль как-либо кроме policy на количество знаков и тп

@tureck1y tureck1y merged commit eb59b46 into develop Jan 28, 2025
3 checks passed
@tureck1y tureck1y deleted the IOS-8946_remove_eye branch January 28, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants