-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Labels
AppKitIssues related to the macOS AppKit editorIssues related to the macOS AppKit editorUIKitIssues related to the iOS UIKit editorIssues related to the iOS UIKit editorbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
If I type extremely long blocks of text, the UIKit and AppKit editors slow down. If I type >52,000 characters in either editor, the editor takes a noticeable amount of time to catch up with whatever I'm typing.
To Reproduce
See gist with sample project.
- Set
@Statevar for HighlightedTextEditor to a string of >50,000 characters - Attempt to type in the editor
Expected behavior
- The editor accepts and displays text from new keypresses at the same fast speed, no matter how many characters I have typed previously.
Screenshots
Screen.Recording.2021-01-11.at.9.37.59.AM.mov
Environment
Please include:
- macOS 11.2 Beta (20D5029f) and iOS 14.2 (simulator)
Additional context
- Happening on current
mainbranch
Metadata
Metadata
Assignees
Labels
AppKitIssues related to the macOS AppKit editorIssues related to the macOS AppKit editorUIKitIssues related to the iOS UIKit editorIssues related to the iOS UIKit editorbugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed