Drop-in Toolbar UI for inputting markdown based text. Made in Swift for iOS.
A very simple UI component that allows users to input markdown styled text. A delegate callback makes it really easy to embed this in your project and get running in minutes.
Cocoapods:
pod 'Notepad', :git => 'https://github.com/ruddfawcett/Notepad'
pod 'MDComposeToolbar', :git => 'https://github.com/Two-Lambda-Labs/MDComposeToolbar'
pod install
let toolbar = MDComposeToolbar()
toolbar.view.frame = view.bounds
toolbar.delegate = self
view.addSubview(toolbar.view)
Optional (Implement Toolbar Delegate):
extension ViewController: MDComposeToolbarDelegate {
func toolbarDidFinish(with string: String?) {
label.text = string
}
}
See MDComposeToolbar-Example
directory for an example and demo of the toolbar.
Screenshots: Gif Demo
- 0.0.1
- Initial Working Version
Jonathan Danek – Website – Jonathan@Danek.com
Distributed under the MIT license. See LICENSE
for more information.
- Fork it (https://github.com/Two-Lambda-Labs/MDComposeToolbar/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request