AttachmentInput is a photo attachment keyboard.It is similar to the keyboard for photo attachment of iOS 11 Messenger.
Add this to your CocoaPods Podfile.
pod 'AttachmentInput'
Add dependencies
value of your Package.swift
.
dependencies: [
.package(url: "https://github.com/cybozu/AttachmentInput.git", .upToNextMajor(from: "1.0.0"))
]
Add privacy properties in info.plist
with a usage description
Create AttachmentInput instance
let attachmentInput = AttachmentInput()
By returning AttachmentInput#view
at inputview you can display the keyboard in the class that inherited UIResponder
override var inputView: UIView? {
return attachmentInput.view
}
Define the behavior when receive the photos in AttachmentInputDelegate
and set it to AttachmentInput
attachmentInput.delegate = self
If you need to use your config, you can pass the config as you create instance
let config = AttachmentInputConfiguration()
config.videoQuality = .typeLow
attachmentInput = AttachmentInput(configuration: config)
MIT
link |
Stars: 30 |
Last commit: 14 weeks ago |
Full Changelog: https://github.com/cybozu/AttachmentInput/compare/0.0.5...1.0.0
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics