Skip to content

lbrndnr/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

Releases

No releases published

Packages

No packages published