Skip to content

Conversation

@thecoolwinter
Copy link
Collaborator

@thecoolwinter thecoolwinter commented Jun 2, 2025

Description

Updates the example app to use an NSTextStorage object instead of a plain String for the editor's contents. This should help with debugging for CodeEdit, to help compare apples to apples performance-wise. For editing any non-trivial file, String causes SwiftUI to perform a character-by-character comparison on the string to check if the view needs invalidating.

Related Issues

N/A

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

@thecoolwinter thecoolwinter merged commit 6f1ceca into CodeEditApp:main Jun 2, 2025
2 checks passed
@thecoolwinter thecoolwinter deleted the use-better-storage-example branch June 2, 2025 15:08
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.

1 participant