All Projects → cybozu → AttachmentInput

cybozu / AttachmentInput

Licence: MIT license
AttachmentInput is image picker keyboard.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to AttachmentInput

Jsqmessagesviewcontroller
An elegant messages UI library for iOS
Stars: ✭ 11,240 (+37366.67%)
Mutual labels:  ios-ui
Fontawesomekit.swift
A better choice for iOS Developer to use FontAwesome Icon with UI.😍
Stars: ✭ 194 (+546.67%)
Mutual labels:  ios-ui
Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (+693.33%)
Mutual labels:  ios-ui
Tangerine
Swift µframework for fetching images 🍊
Stars: ✭ 149 (+396.67%)
Mutual labels:  ios-ui
Lmmediaplayer
A video and audio player with replaceable UI component.
Stars: ✭ 183 (+510%)
Mutual labels:  ios-ui
Pvview
A small library that helps you to make an amazing parallax view
Stars: ✭ 227 (+656.67%)
Mutual labels:  ios-ui
Calendarkit
📅 Calendar for Apple platforms in Swift
Stars: ✭ 2,049 (+6730%)
Mutual labels:  ios-ui
extensions-kit
📦 Collection of Swift+Apple Frameworks extensions for speeding up software development [iOS & iPadOS].
Stars: ✭ 71 (+136.67%)
Mutual labels:  ios-ui
Mycoretextlabel
图文混排 , 实现图片文字混排 , 可显示常规链接比如网址,@,#话题#,手机号 , 邮箱号等 , 可以自定义链接字,设置关键字高亮等功能 . 适用于微博,微信,IM聊天对话等场景 . 实现这些功能仅用了几百行代码,耦合性也较低
Stars: ✭ 192 (+540%)
Mutual labels:  ios-ui
Noticebar
😍A simple NoticeBar written by Swift 3, similar with QQ notice view.
Stars: ✭ 237 (+690%)
Mutual labels:  ios-ui
Wobbly
(Animate CSS) animations for iOS. An easy to use library of iOS animations. As easy to use as an easy thing.
Stars: ✭ 150 (+400%)
Mutual labels:  ios-ui
Jxtalertmanager
UIAlertView/UIAlertController便捷调用工具
Stars: ✭ 177 (+490%)
Mutual labels:  ios-ui
Parchment
A paging view controller with a highly customizable menu ✨
Stars: ✭ 2,812 (+9273.33%)
Mutual labels:  ios-ui
Swiftui Tutorials
A code example and translation project of SwiftUI. / 一个 SwiftUI 的示例、翻译的教程项目。
Stars: ✭ 1,992 (+6540%)
Mutual labels:  ios-ui
Nativepopup
Clone of Apple iOS App's feedback popup, and easily customizable.
Stars: ✭ 247 (+723.33%)
Mutual labels:  ios-ui
Eureka
Elegant iOS form builder in Swift
Stars: ✭ 11,345 (+37716.67%)
Mutual labels:  ios-ui
Ppasyncdrawingkit
This is a iOS asynchronously drawing view Kit.
Stars: ✭ 205 (+583.33%)
Mutual labels:  ios-ui
ios-font-size-tester
A quick way to test out a resizable iOS app font stack at all sizes via UI testing
Stars: ✭ 43 (+43.33%)
Mutual labels:  ios-ui
Drawerview
A drop-in view, to be used as a drawer anywhere in your app
Stars: ✭ 251 (+736.67%)
Mutual labels:  ios-ui
Swiftpagemenu
Customizable Page Tab Menu Controller 👍
Stars: ✭ 233 (+676.67%)
Mutual labels:  ios-ui

📷 AttachmentInput

AttachmentInput is a photo attachment keyboard.It is similar to the keyboard for photo attachment of iOS 11 Messenger.

🍱 Supported Features

  • Shoot a photo on the keyboard
  • Pick image/video on the keyboard
  • Pick image/video from UIImagePickerController
  • Download and attach image/video stored on iCloud
  • Compress image/video
  • Get the image/video file name, file size, thumbnail image
  • Provides custom features

Requirements

  • Written in Swift 5
  • Compatible with iOS 12.0+
  • Development with Xcode 12.0+

🏃 Install

CocoaPods

Add this to your CocoaPods Podfile.

pod 'AttachmentInput'

Swift Package Manager

Add dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/cybozu/AttachmentInput.git", .upToNextMajor(from: "1.0.0"))
]

🛠️ Usage

  1. Add privacy properties in info.plist with a usage description

    • Privacy - Photo Library Usage Description
    • Privacy - Microphone Usage Description
    • Privacy - Camera Usage Description
  2. Create AttachmentInput instance

    let attachmentInput = AttachmentInput()
  3. By returning AttachmentInput#view at inputview you can display the keyboard in the class that inherited UIResponder

    override var inputView: UIView? {
        return attachmentInput.view
    }
  4. Define the behavior when receive the photos in AttachmentInputDelegate and set it to AttachmentInput

    attachmentInput.delegate = self
  5. 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)

🖋️ License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].