MarkdownView alternatives and similar libraries
Based on the "Text" category.
Alternatively, view MarkdownView alternatives based on common mentions on social networks and blogs.
-
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 -
FontAwesomeKit
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. -
Atributika
Easily build NSAttributedString by detecting and styling HTML-like tags, hashtags, mentions, RegExp or NSDataDetector patterns. -
Highlighter
Highlight whatever you want! Highlighter will magically find UI objects such as UILabel, UITextView, UITexTfield, UIButton in your UITableViewCell or other Class. -
NSStringEmojize
A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters. -
Mustard
Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it. -
GoogleMaterialDesignIcons
Google Material Design Icons Font for iOS. -
Heimdall
Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. -
AttributedTextView
Easiest way to create an attributed UITextView with support for multiple links (including hashtags and mentions).
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of MarkdownView or a related project?
README
MarkdownView
MarkdownView is a WKWebView based UI element, and internally use bootstrap, highlight.js, markdown-it.
How to use
import MarkdownView
let md = MarkdownView()
md.load(markdown: "# Hello World!")
Options
md.isScrollEnabled = false
// called when rendering finished
md.onRendered = { [weak self] height in
self?.mdViewHeight.constant = height
self?.view.setNeedsLayout()
}
// called when user touch link
md.onTouchLink = { [weak self] request in
guard let url = request.url else { return false }
if url.scheme == "file" {
return false
} else if url.scheme == "https" {
let safari = SFSafariViewController(url: url)
self?.navigationController?.pushViewController(safari, animated: true)
return false
} else {
return false
}
}
Requirements
Target | Version |
---|---|
iOS | => 13.0 |
Swift | => 5.2 |
Installation
MarkdownView is available through Swift Package Manager or CocoaPods or Carthage.
Swift Package Manager
dependencies: [
.package(url: "https://github.com/keitaoouchi/MarkdownView.git", from: "1.7.1")
]
Alternatively, you can add the package directly via Xcode.
CocoaPods
pod "MarkdownView"
Carthage
github "keitaoouchi/MarkdownView"
for detail, please follow the Carthage Instruction
Author
keita.oouchi, [email protected]
License
bootstrap is licensed under MIT license.
highlight.js is licensed under BSD-3-Clause license.
markdown-it is licensed under MIT license.
MarkdownView is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the MarkdownView README section above
are relevant to that project's source code only.