Skip to content

Improved TextField truncation and placeholder cursor alignment - #581

Merged
fhasse95 merged 3 commits into
skiptools:mainfrom
fhasse95:TextField-Improvements
Oct 22, 2026
Merged

fhasse95 merged 3 commits into
skiptools:mainfrom
fhasse95:TextField-Improvements

Conversation

@fhasse95

Copy link
Copy Markdown
Member

This PR improves the TextField behavior to match iOS by adding tail truncation to unfocused single-line text fields and aligning the empty cursor with the leading edge of the placeholder, including centered placeholders.

Tail Truncation:
Unfocused:
Unfocused

Focused:
Focused

=> Before this change, text that exceeded the field’s width showed its ending instead of its beginning, without truncation. Unfocused fields now show the beginning with an ellipsis, matching iOS behavior.

Cursor Alignment:
Placeholder:
Centered (Placeholder)

Entered Text:
Centered (Entered Text)

=> Before this change, the cursor appeared in the center of an empty field with a centered placeholder, overlapping the placeholder text. It now appears at the placeholder’s leading edge, matching iOS behavior.


Thank you for contributing to the Skip project! Please review the contribution guide at https://skip.dev/docs/contributing/ for advice and guidance on making high-quality PRs.

Use this space to describe your change and add any labels (bug, enhancement, documentation, etc.) to help categorize your contribution.

Skip Pull Request Checklist:

  • REQUIRED: I have signed the Contributor Agreement
  • REQUIRED: I have tested my change locally with swift test
  • OPTIONAL: I have tested my change on an iOS simulator or device
  • OPTIONAL: I have tested my change on an Android emulator or device
  • REQUIRED: I have checked whether this change requires a corresponding update in the Skip Fuse UI repository (link related PR if applicable)
  • OPTIONAL: I have added an example of any UI changes to the Showcase sample app

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Codex assisted with the implementation and on device testing on Android. I manually verified / adjusted the changes in my app on a Pixel, including truncation, centered placeholders, cursor placement, and scrolling. The tests also covered text in RTL layouts (e.g. Arabic).


@cla-bot cla-bot Bot added the cla-signed label Oct 20, 2026
@fhasse95
fhasse95 merged commit 47d5327 into skiptools:main Oct 22, 2026
2 of 3 checks passed
@fhasse95
fhasse95 deleted the TextField-Improvements branch October 22, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant