[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-7030":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":16,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":19,"hasPages":21,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},7030,"TwitterTextEditor","twitter\u002FTwitterTextEditor","twitter","A standalone, flexible API that provides a full-featured rich text editor for iOS applications.","",null,"Swift",3006,172,44,10,0,58.71,"Apache License 2.0",false,"master",true,[23,24,25,26],"ios","swift","textkit","uikit","2026-06-12 04:00:32","# Twitter Text Editor\n\nA standalone, flexible API that provides a full featured rich text editor for iOS applications.\n\n![Twitter Text Editor](Sources\u002FTwitterTextEditor\u002FDocumentation.docc\u002FResources\u002FTwitterTextEditor.png)\n\nIt supports safe text modification, attribute annotations such as syntax highlighting, pasting or drag and drop handling.\n\nThis provides a robust text attribute update logic, extended text editing events, and safe text input event handling in easy delegate based APIs.\nTwitterTextEditor supports recent versions of iOS.\n\n\n## Requirements\n\nTwitter Text Editor requires macOS Catalina 10.15 or later and Xcode 11.0 and later for the development.\nAt this moment, Twitter Text Editor supports iOS 11.0 and later also macCatalyst 13.0 and later.\n\n\n## Usage\n\nUsing Twitter Text Editor is straightforward if you're familiar with iOS development. See\nalso [Examples](Examples\u002F) for actual usage, that contains Swift and Objective-C source code\nto show how to use Twitter Text Editor. See [`Examples\u002FREADME.md`](Examples\u002FREADME.md) as well.\n\n### Add Twitter Text Editor framework to your project\n\nAdd the following lines to your `Package.swift` or use Xcode “Add Package Dependency…” menu.\n\n```swift\n\u002F\u002F In your `Package.swift`\n\ndependencies: [\n    .package(name: \"TwitterTextEditor\", url: \"https:\u002F\u002Fgithub.com\u002Ftwitter\u002FTwitterTextEditor\", ...),\n    ...\n],\ntargets: [\n    .target(\n        name: ...,\n        dependencies: [\n            .product(name: \"TwitterTextEditor\", package: \"TwitterTextEditor\"),\n            ...\n        ]\n    ),\n    ...\n]\n```\n\n### Use with other dependency management tools\n\nIn case your project is not using Swift Package Manager,\nyou can use Twitter Text Editor with other dependency management tools.\n\n#### CocoaPods\n\nTo use Twitter Text Editor with [CocoaPods](https:\u002F\u002Fcocoapods.org\u002F), add next `TwitterTextEditor.podspec` in your project.\n\n```ruby\nPod::Spec.new do |spec|\n  spec.name = \"TwitterTextEditor\"\n  spec.version = \"1.0.0\" # Find the the version from the Git tags\n  spec.authors = \"\"\n  spec.summary = \"TwitterTextEditor\"\n  spec.homepage = \"https:\u002F\u002Fgithub.com\u002Ftwitter\u002FTwitterTextEditor\"\n  spec.platform = :ios, \"11.0\"\n  spec.source = {\n    :git => \"https:\u002F\u002Fgithub.com\u002Ftwitter\u002FTwitterTextEditor.git\", :tag => \"#{spec.version}\"\n  }\n  spec.source_files  = \"Sources\u002FTwitterTextEditor\u002F*.swift\"\nend\n```\n\nThen, update `Podfile` in your project.\n\n```ruby\npod 'TwitterTextEditor', :podspec => 'path\u002Fto\u002FTwitterTextEditor.podspec'\n```\n\n#### Carthage\n\nTo use Twitter Text Editor with [Carthage](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage), update `Cartfile` in your project.\n\n```\ngithub \"twitter\u002FTwitterTextEditor\"\n```\n\nThen, run following commands. This will create `Carthage\u002FBuild\u002FiOS\u002FTwitterTextEditor.framework`.\n\n```\n$ carthage update\n$ (cd Carthage\u002FCheckouts\u002FTwitterTextEditor && swift package generate-xcodeproj)\n$ carthage build --platform iOS\n```\n\nFollow [the instructions](https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage#if-youre-building-for-ios-tvos-or-watchos)\nto add the framework and Run Script phase to your project.\n\n### Documentation\n\nSee [documentation](https:\u002F\u002Ftwitter.github.io\u002FTwitterTextEditor\u002Fdocumentation\u002Ftwittertexteditor).\n\n\n## Use Twitter Text Editor in your project\n\nTwitter Text Editor provides a single view, `TextEditorView`, that has a similar API\nto `UITextView` and provides the most of features as a property or a delegate callback.\n\nAdd it to your project as like the other views, and setup using each property or implement delegate callbacks.\n\n```swift\n\u002F\u002F In your view controller\n\nimport TwitterTextEditor\n\nfinal class MyViewController: UIViewController {\n    \u002F\u002F ...\n\n    override func viewDidLoad() {\n        super.viewDidLoad()\n        \u002F\u002F ...\n        let textEditorView = TextEditorView()\n        textEditorView.text = \"Meow\"\n        textEditorView.textAttributesDelegate = self\n        \u002F\u002F ...\n    }\n\n    \u002F\u002F ...\n}\n\nextension MyViewController: TextEditorViewTextAttributesDelegate {\n    func textEditorView(_ textEditorView: TextEditorView,\n                        updateAttributedString attributedString: NSAttributedString,\n                        completion: @escaping (NSAttributedString?) -> Void)\n    {\n        \u002F\u002F ...\n    }\n}\n```\n\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the details.\n\n\n## Security issues\n\nPlease report sensitive security issues via [Twitter’s bug-bounty program](https:\u002F\u002Fhackerone.com\u002Ftwitter) rather than GitHub.\n","Twitter Text Editor 是一个为iOS应用程序提供功能丰富的富文本编辑器的独立且灵活的API。它支持安全的文本修改、语法高亮等属性注释，以及粘贴或拖放处理等功能，并通过易于使用的基于代理的API提供了强大的文本属性更新逻辑、扩展的文本编辑事件和安全的文本输入事件处理。适用于需要在iOS应用中集成高质量文本编辑功能的场景，如社交媒体应用、笔记应用等。项目采用Swift编写，支持iOS 11.0及以上版本，macCatalyst 13.0及以上版本。开发环境要求macOS Catalina 10.15或更高版本及Xcode 11.0或更高版本。可通过Swift Package Manager、CocoaPods或Carthage等多种方式轻松集成到项目中。",2,"2026-06-11 03:10:13","top_language"]