Ubaguruma Ubaguruma can a photo select picker like LINE.
Requirements
- Xcode 10.2+
- Swift 5.0+
- iOS 11+
Installation
CocoaPods
Ubaguruma is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Ubaguruma"
Carthage
Carthage is a decentralized dependency manager for Cocoa application.
$ brew update
$ brew install carthage
To integrate Ubaguruma into your Xcode project using Carthage, specify it in your Cartfile
:
github "nakajijapan/Ubaguruma"
Then, run the following command to build the Ubaguruma framework:
$ carthage update
Usage
Initialize
let imagePickerController = Ubaguruma.ImagePickerController()
let safeAreaInsetBottom = view.safeAreaInsets.bottom
let defaultKeyboardMinY: CGFloat = 346
chatToolbarViewBottomConstraint.constant = defaultKeyboardMinY - safeAreaInsetBottom
imagePickerController?.visibleHeight = defaultKeyboardMinY
imagePickerController?.present(containerController: navigationController, animated: animated)
Author
nakajijapan
License
Ubaguruma is available under the MIT license. See the LICENSE file for more info.