Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.7 KB

README.md

File metadata and controls

65 lines (45 loc) · 1.7 KB

MDComposeToolbar

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.

Installation

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
	}
}

Usage example

See MDComposeToolbar-Example directory for an example and demo of the toolbar.

Screenshots: Screenshot Gif Demo

Release History

  • 0.0.1
    • Initial Working Version

Meta

Jonathan Danek – WebsiteJonathan@Danek.com

Distributed under the MIT license. See LICENSE for more information.

Github

Contributing

  1. Fork it (https://github.com/Two-Lambda-Labs/MDComposeToolbar/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request