Simplify documents
A library that simplifies the way you deal with documents
In Xcode: File > Swift Packages > Add Package Dependency
Paste: https://github.com/thoughtbot/Bean.git
A Bean is a subclass of UIDocument that is returned after documents are selected
class ViewController: UIViewController, DocumentPickable {
self.pickDocuments()
func didPickDocument(document: Bean?) {
// handle the bean
}
self.presentPreview(document: Bean)
Bean is Copyright © 2020 Abe Mangona and thoughtbot. It is free
software, and may be redistributed under the terms specified in the
LICENSE file.
Bean is maintained and funded by thoughtbot, inc.
The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software!
See our other projects or
hire us to design, develop, and grow your product.