SkillAgentSearch skills...

CodeEditView

custom text view implementation

Install / Use

/learn @krzyzanowskim/CodeEditView
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Never finished and abandoned attempt to build a text layout + text view.

Re-inventing the wheel by implementing a custom text layout system on the CoreText framework. I learned a lot and decided not to pursue this approach.

  • LayoutManager
    • LayoutManager text layout manager. layout text from the TextStorage. Layout lines (fragments) of text at once.
  • Model
    • text storage abstracted Range, Position, SelectionRange, etc
  • TextStorage
    • TextStorage abstracted text storage interface
    • TextStorageProvider protocol for any text storage
    • TextBufferStorageProvider TextBuffer-based implementation of the text storage provider
    • StringTextStorageProvider String-based implementation of the text storage provider
  • CodeEditView
    • Text view (NSView)

Contact

Get in touch via twitter @krzyzanowskim, mastodon @krzyzanowskim@mastodon.social

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated1y ago
Forks1

Languages

Swift

Security Score

70/100

Audited on Feb 23, 2025

No findings