Commit graph

4 commits

Author SHA1 Message Date
William Laverty
35fee30355
Fix SMS autofill by using single text field
The previous implementation used 6 separate text fields for the SMS
verification code, which broke macOS's built-in SMS autofill functionality.
When the system detects an SMS code and offers to autofill it, it expects
a single text field to receive the entire code.

Changes:
- Replaced 6 individual PinCodeCharacterTextField instances with a single
  NSTextField
- Added .oneTimeCode content type to enable SMS autofill on macOS 11+
- Simplified the code structure while maintaining the same functionality
- Added input validation to ensure only digits are accepted

Now when users receive an SMS verification code, macOS can properly
autofill the entire code with a single click, rather than filling only
the first digit and deleting the message.

Closes #788
2026-02-04 04:09:25 -08:00
Kyle
fc35950885
Add PinCodeTextField autocomplete support 2023-06-20 18:04:31 +08:00
Chad Sykes
cce80ae012 Simple fix to ensure all characters are shown without clipping... while I could try to figure a more robust solution but it feels like there are bigger fish to fry 2020-12-26 16:02:35 -07:00
Brandon Evans
34adfb73a2
Reorganize files a bit 2020-12-22 21:01:33 -07:00
Renamed from Xcodes/SignIn/PinCodeTextView.swift (Browse further)