Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.38 KB

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.