Swiftpack.co - Package - thoughtbot/Bean

Bean CircleCI SwiftPM compatible Carthage compatible

A library that simplifies the way you deal with documents

Requirements

  • iOS 13.0 or later
  • Swift 4.0 or later

Supported Files

  • Image
  • Video
  • Audio
  • Text

Installation

SwiftPM

In Xcode: File > Swift Packages > Add Package Dependency Paste: https://github.com/thoughtbot/Bean.git

Usage

A Bean is a subclass of UIDocument that is returned after documents are selected

Conforming to DocumentPickable

class ViewController: UIViewController, DocumentPickable {

Present document picker

self.pickDocuments()

Respond to protocal method

func didPickDocument(document: Bean?) {
    // handle the bean
}

Preview a bean

self.presentPreview(document: Bean)

License

Bean is Copyright © 2020 Abe Mangona and thoughtbot. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

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.

Github

link
Stars: 5

Dependencies

Used By

Total: 0