TwitterTextEditor alternatives and similar libraries
Based on the "Text" category.
Alternatively, view TwitterTextEditor alternatives based on common mentions on social networks and blogs.
-
YYText
Powerful text framework for iOS to display and edit rich text. -
Nimbus
The iOS framework that grows only as fast as its documentation -
DTCoreText
Methods to allow using HTML code with CoreText -
PhoneNumberKit
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber. -
ZSSRichTextEditor
A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view -
Twitter Text Obj
Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform. -
FontAwesomeKit
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. -
libPhoneNumber-iOS
iOS port from libphonenumber (Google's phone number handling library) -
SwiftRichString
👩🎨 Elegant Attributed String composition in Swift sauce -
RichEditorView
RichEditorView is a simple, modular, drop-in UIView subclass for Rich Text Editing. -
Down
Blazing fast Markdown / CommonMark rendering in Swift, built upon cmark. -
TextAttributes
An easier way to compose attributed strings -
FontAwesome.swift
Use FontAwesome in your Swift projects -
SwiftyMarkdown
Converts Markdown files and strings into NSAttributedStrings with lots of customisation options. -
SwiftString
A comprehensive, lightweight string extension for Swift -
Iconic
:art: Auto-generated icon font library for iOS, watchOS and tvOS -
SwiftyAttributes
A Swifty API for attributed strings -
MMMarkdown
An Objective-C framework for converting Markdown to HTML. -
Atributika
Convert text with HTML tags, links, hashtags, mentions into NSAttributedString. Make them clickable with UILabel drop-in replacement. -
CocoaMarkdown
Markdown parsing and rendering for iOS and OS X -
SwiftIconFont
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon) -
FontBlaster
Programmatically load custom fonts into your iOS, macOS and tvOS app. -
Notepad
[iOS] A fully themeable markdown editor with live syntax highlighting. -
fuse-swift
A lightweight fuzzy-search library, with zero dependencies -
Font-Awesome-Swift
Font Awesome swift library for iOS. -
MarkdownKit
A simple and customizable Markdown Parser for Swift -
FormatterKit
stringWithFormat: for the sophisticated hacker set -
NSStringEmojize
A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters -
MarkdownTextView
Rich Markdown editing control for iOS -
Mustard
🌭 Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it. -
Guitar
A Cross-Platform String and Regular Expression Library written in Swift. -
Translucid
Lightweight library to set an Image as text background. Written in swift. -
Heimdall
Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. -
GoogleMaterialDesignIcons
Google Material Design Icons Font for iOS -
AttributedTextView
Easiest way to create an attributed UITextView (with support for multiple links and from html) -
Apodimark
Fast, flexible markdown parser written in Swift.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of TwitterTextEditor or a related project?
README
Twitter Text Editor
A standalone, flexible API that provides a full featured rich text editor for iOS applications.
[Twitter Text Editor](Resources/TwitterTextEditor.png)
This provides a robust text attribute update logic, extended text editing events, and safe text input event handling in easy delegate based APIs. TwitterTextEditor supports recent versions of iOS.
Requirements
Twitter Text Editor requires macOS Catalina 10.15 or later and Xcode 11.0 and later for the development. At this moment, Twitter Text Editor supports iOS 11.0 and later also macCatalyst 13.0 and later.
Usage
Using Twitter Text Editor is straightforward if you're familiar with iOS development. See
also [Examples](Examples/) for actual usage, that contains Swift and Objective-C source code
to show how to use Twitter Text Editor. See [Examples/README.md
](Examples/README.md) as well.
Add Twitter Text Editor framework to your project
Add the following lines to your Package.swift
or use Xcode “Add Package Dependency…” menu.
// In your `Package.swift`
dependencies: [
.package(name: "TwitterTextEditor", url: "https://github.com/twitter/TwitterTextEditor", ...),
...
],
targets: [
.target(
name: ...,
dependencies: [
.product(name: "TwitterTextEditor", package: "TwitterTextEditor"),
...
]
),
...
]
Use with other dependency management tools
In case your project is not using Swift Package Manager, you can use Twitter Text Editor with other dependency management tools.
CocoaPods
To use Twitter Text Editor with CocoaPods, add next TwitterTextEditor.podspec
in your project.
Pod::Spec.new do |spec|
spec.name = "TwitterTextEditor"
spec.version = "1.0.0" # Find the the version from the Git tags
spec.authors = ""
spec.summary = "TwitterTextEditor"
spec.homepage = "https://github.com/twitter/TwitterTextEditor"
spec.platform = :ios, "11.0"
spec.source = {
:git => "https://github.com/twitter/TwitterTextEditor.git", :tag => "#{spec.version}"
}
spec.source_files = "Sources/TwitterTextEditor/*.swift"
end
Then, update Podfile
in your project.
pod 'TwitterTextEditor', :podspec => 'path/to/TwitterTextEditor.podspec'
Carthage
To use Twitter Text Editor with Carthage, update Cartfile
in your project.
github "twitter/TwitterTextEditor"
Then, run following commands. This will create Carthage/Build/iOS/TwitterTextEditor.framework
.
$ carthage update
$ (cd Carthage/Checkouts/TwitterTextEditor && swift package generate-xcodeproj)
$ carthage build --platform iOS
Follow the instructions to add the framework and Run Script phase to your project.
Documentation
See documentation.
Use Twitter Text Editor in your project
Twitter Text Editor provides a single view, TextEditorView
, that has a similar API
to UITextView
and provides the most of features as a property or a delegate callback.
Add it to your project as like the other views, and setup using each property or implement delegate callbacks.
// In your view controller
import TwitterTextEditor
final class MyViewController: UIViewController {
// ...
override func viewDidLoad() {
super.viewDidLoad()
// ...
let textEditorView = TextEditorView()
textEditorView.text = "Meow"
textEditorView.textAttributesDelegate = self
// ...
}
// ...
}
extension MyViewController: TextEditorViewTextAttributesDelegate {
func textEditorView(_ textEditorView: TextEditorView,
updateAttributedString attributedString: NSAttributedString,
completion: @escaping (NSAttributedString?) -> Void)
{
// ...
}
}
Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md) for the details.
Security issues
Please report sensitive security issues via Twitter’s bug-bounty program rather than GitHub.