Awesome
ImagePickerTrayController
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⚠️
<img src="https://raw.githubusercontent.com/lbrndnr/ImagePickerTrayController/master/Screenshots/Example.png" width="320">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.