{"id":13462716,"url":"https://github.com/facebook/lexical-ios","last_synced_at":"2025-05-15T11:06:00.745Z","repository":{"id":146451766,"uuid":"616546648","full_name":"facebook/lexical-ios","owner":"facebook","description":"Lexical iOS is an extensible text editor framework that integrates the APIs and philosophies from Lexical Web with a Swift API built on top of TextKit.","archived":false,"fork":false,"pushed_at":"2025-04-03T17:31:24.000Z","size":682,"stargazers_count":579,"open_issues_count":27,"forks_count":44,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-04-07T14:11:11.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/facebook.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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}},"created_at":"2023-03-20T15:44:31.000Z","updated_at":"2025-04-06T21:28:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcb6ec13-d8d0-4aad-b35e-92bc80d3344c","html_url":"https://github.com/facebook/lexical-ios","commit_stats":{"total_commits":95,"total_committers":16,"mean_commits":5.9375,"dds":0.5473684210526315,"last_synced_commit":"db0a821999b990ae906554786f450905f9652d71"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Flexical-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Flexical-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Flexical-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebook%2Flexical-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facebook","download_url":"https://codeload.github.com/facebook/lexical-ios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248933345,"owners_count":21185460,"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":[],"created_at":"2024-07-31T13:00:19.438Z","updated_at":"2025-04-14T18:17:37.053Z","avatar_url":"https://github.com/facebook.png","language":"Swift","funding_links":[],"categories":["Swift","CoreText"],"sub_categories":[],"readme":"# Lexical iOS\n\nAn extensible text editor/renderer written in Swift, built on top of TextKit, and sharing a philosophy and API with [Lexical JavaScript](https://lexical.dev).\n\n## Status\n\nLexical iOS is used in multiple apps at Meta, including rendering feed posts that contain inline images in Workplace iOS.\n\nLexical iOS is in pre-release with no guarantee of support.\n\nFor changes between versions, see the [Lexical iOS Changelog](https://github.com/facebook/lexical-ios/blob/main/Lexical/Documentation.docc/Changelog.md).\n\n## Playground\n\nWe have a sample playground app demonstrating some of Lexical's features:\n\n![Screenshot of playground app](docs/resources/playground.png)\n\nThe playground app contains the code for a rich text toolbar. While this is not specifically a reusable toolbar that you can drop straight into your projects, its code should provide a good starting point for you to customise.\n\nThis playground app is very new, and many more features will come in time!\n\n## Requirements\nLexical iOS is written in Swift, and targets iOS 13 and above. (Note that the Playground app requires at least iOS 14, due to use of UIKit features such as UIMenu.)\n\n## Building Lexical\nWe provide a Swift package file that is sufficient to build Lexical core. Add this as a dependency of your app to use Lexical.\n\nSome plugins included in this repository do not yet have package files. (This is because we use a different build system internally at Meta. Adding these would be an easy PR if you want to start contributing to Lexical!)\n\n## Using Lexical in your app\nFor editable text with Lexical, instantiate a `LexicalView`. To configure it with plugins and a theme, you can create an `EditorConfig` to pass in to the `LexicalView`'s initialiser.\n\nTo programatically work with the data within your `LexicalView`, you need access to the `Editor`. You can then call `editor.update {}`, and inside that closure you can use the Lexical API.\n\nFor more information, see the documentation.\n\n## Full documentation\nRead [the Lexical iOS documentation](https://facebook.github.io/lexical-ios/documentation/lexical/). \n\n## Join the Lexical community\nJoin us at [our Discord server](https://discord.gg/KmG4wQnnD9), where you can talk with the Lexical team and other users.\n\nSee the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.\n\n## Tests\nLexical has a suite of unit tests, in XCTest format, which can be run from within Xcode. We do not currently have any end-to-end tests.\n\n## License\nLexical is [MIT licensed](https://github.com/facebook/lexical/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Flexical-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacebook%2Flexical-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebook%2Flexical-ios/lists"}