Skip to content

amangona/SwiftyDocPicker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftyDocPicker

A very "Swifty" approach to picking documents. Document selection had never been easier.

documents

Usage

Its as simple as conforming to the DocumentDelegate

class ViewController: UIViewController, DocumentDelegate {

Initializing a DocumentPicker

var documentPicker: DocumentPicker!

 override func viewDidLoad() {
    super.viewDidLoad()
    documentPicker = DocumentPicker(presentationController: self, delegate: self)
 }

Presenting the picker

documentPicker.present(from: view)

And responding to the delegate function

func didPickDocuments(documents: [Document]) {
       // handle selected documents
}

Read more on Medium

About

A very "Swifty" approach to picking documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages