Skip to content

Yourney/ImagePickerTrayController

 
 

Repository files navigation

ImagePickerTrayController

Twitter: @lbrndnr License

About

ImagePickerTrayController is a component that replicates the custom photo action sheet in iMessage. It's the iOS 10 version of ImagePickerSheetController. ⚠️Note that this library is still WIP⚠️

Example

let controller = ImagePickerTrayController()
controller.add(action: .cameraAction { _ in
    print("Show Camera")
})
controller.add(action: .libraryAction { _ in
    print("Show Library")
})
controller.show(in: view)
imagePickerTrayController = controller

Installation

I wouldn't recommend using this library just yet. It's still WIP⚠️.

Requirements

ImagePickerTrayController is written in Swift and links against Photos.framework. It therefore requires iOS 8 or later.

Author

I'm Laurin Brandner, I'm on Twitter.

License

ImagePickerTrayController is licensed under the MIT License.

About

The iOS 10 version of ImagePickerSheetController

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 91.0%
  • Ruby 8.4%
  • Objective-C 0.6%