Skip to content

Conversation

@maksg
Copy link
Contributor

@maksg maksg commented May 23, 2024

Details

On iOS TextView was very slow and unreliable. This PR improves the performance by quite a lot by removing some unnecessary code and simplifying parsing logic.

@maksg maksg force-pushed the @maksg/performance-fixes-ios branch 3 times, most recently from 2bc06d9 to bc558d9 Compare May 27, 2024 10:15
@maksg maksg force-pushed the @maksg/performance-fixes-ios branch from bc558d9 to 5e5985a Compare May 27, 2024 12:30
@maksg maksg force-pushed the @maksg/performance-fixes-ios branch from 8a5ef00 to a2f7e92 Compare September 10, 2024 14:15
@tomekzaw
Copy link
Collaborator

This PR fixes an issue with fontSize and emoji.fontSize not being applied right-away on iOS:

Screen.Recording.2024-09-12.at.11.55.09.mov

@tomekzaw
Copy link
Collaborator

❌ Regression found: text suggestions are instantly converted into regular text

Screen.Recording.2024-09-12.at.11.57.07.mov

@tomekzaw
Copy link
Collaborator

Regression found:

Screen.Recording.2024-09-18.at.09.42.29.mov

@maksg maksg force-pushed the @maksg/performance-fixes-ios branch from 39b7432 to 0023863 Compare October 14, 2024 10:12
@maksg
Copy link
Contributor Author

maksg commented Oct 14, 2024

Fixed all the issues except this. Possibly it's a regression but needs to be looked at. I think it happens only after emojis because other than that the autocomplete seems to work.

Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2024-10-14.at.17.48.10.mp4

@tomekzaw
Copy link
Collaborator

Closing this PR as #520 has just been merged.

Thanks @maksg for showing me this approach with modifying NSTextStorage in-place.

@tomekzaw tomekzaw closed this May 14, 2025
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.

2 participants