{"id":20683183,"url":"https://github.com/chimehq/textbook","last_synced_at":"2025-04-22T12:22:37.662Z","repository":{"id":230626155,"uuid":"735033645","full_name":"ChimeHQ/Textbook","owner":"ChimeHQ","description":"Easier text views and SwiftUI ","archived":false,"fork":false,"pushed_at":"2024-08-27T11:17:49.000Z","size":23,"stargazers_count":9,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-08-27T12:37:12.127Z","etag":null,"topics":["appkit","nstextview","swift","uikit","uitextview"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChimeHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["mattmassicotte"]}},"created_at":"2023-12-23T12:31:52.000Z","updated_at":"2024-08-27T11:32:15.000Z","dependencies_parsed_at":"2024-03-30T23:31:49.763Z","dependency_job_id":"c9c8b52b-5686-41c9-84ea-b5aaaa48c085","html_url":"https://github.com/ChimeHQ/Textbook","commit_stats":null,"previous_names":["chimehq/textbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FTextbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FTextbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FTextbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChimeHQ%2FTextbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChimeHQ","download_url":"https://codeload.github.com/ChimeHQ/Textbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224974662,"owners_count":17401108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appkit","nstextview","swift","uikit","uitextview"],"created_at":"2024-11-16T22:15:47.791Z","updated_at":"2024-11-16T22:15:48.512Z","avatar_url":"https://github.com/ChimeHQ.png","language":"Swift","funding_links":["https://github.com/sponsors/mattmassicotte"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Build Status][build status badge]][build status]\n[![Platforms][platforms badge]][platforms]\n[![Documentation][documentation badge]][documentation]\n[![Matrix][matrix badge]][matrix]\n\n\u003c/div\u003e\n\n# Textbook\nEasier NSTextView/UITextView and SwiftUI \n\n## Installation\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/ChimeHQ/Textbook\", branch: \"main\")\n],\n```\n\n## Usage\n\n### `BaseTextView`\n\nThis is an `NSTextView` subclass that aims for an absolute minimal amount of changes. Things are allowed only if they are required for correct functionality. It is intended to be a drop-in replacement for `NSTextView`, and should maintain compatibilty with existing subclasses. Behaviors are appropriate for all types of text.\n\n- Additional routing to `NSTextViewDelegate.textView(_:, doCommandBy:) -\u003e Bool`:  `paste`, `pasteAsRichText`, `pasteAsPlainText`\n- Hooks for `onKeyDown`, `onFlagsChanged`, `onMouseDown`\n- Configurable selection notifcation delivery via `continuousSelectionNotifications`\n\n## Contributing and Collaboration\n\nI would love to hear from you! Issues or pull requests work great. Both a [Matrix space][matrix] and [Discord][discord] are available for live help, but I have a strong bias towards answering in the form of documentation. You can also find me on [mastodon](https://mastodon.social/@mattiem).\n\nI prefer collaboration, and would love to find ways to work together if you have a similar project.\n\nI prefer indentation with tabs for improved accessibility. But, I'd rather you use the system you want and make a PR than hesitate because of whitespace.\n\nBy participating in this project you agree to abide by the [Contributor Code of Conduct](CODE_OF_CONDUCT.md).\n\n[build status]: https://github.com/ChimeHQ/Textbook/actions\n[build status badge]: https://github.com/ChimeHQ/Textbook/workflows/CI/badge.svg\n[platforms]: https://swiftpackageindex.com/ChimeHQ/Textbook\n[platforms badge]: https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FChimeHQ%2FTextbook%2Fbadge%3Ftype%3Dplatforms\n[documentation]: https://swiftpackageindex.com/ChimeHQ/Textbook/main/documentation\n[documentation badge]: https://img.shields.io/badge/Documentation-DocC-blue\n[matrix]: https://matrix.to/#/%23chimehq%3Amatrix.org\n[matrix badge]: https://img.shields.io/matrix/chimehq%3Amatrix.org?label=Matrix\n[discord]: https://discord.gg/esFpX6sErJ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimehq%2Ftextbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchimehq%2Ftextbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchimehq%2Ftextbook/lists"}