Latest 1.0.1
Homepage https://github.com/kuchhadiyaa/MessageInputManager
License MIT
Platforms ios 9.0
Frameworks UIKit, Photos, AVFoundation
Authors

CI Status
Version
License
Platform

MessageInputManager is drop in copy of iMessage message input. MessageInputManager allows users to enter text message as well as media messages. It allows to capture photo directly from the place and allows to capture photo or select photo using UIImagePickerController.

Requirements

  • iOS 9.0+
  • Xcode 9.4+ (Did not tested on older versions.)
  • Swift 4.0+

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Screenshots

MessageInputManagerMessageInputManager

Installation

MessageInputManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MessageInputManager'

Usage

Use it as input accessory view to UIView which handles chat details or where user input is required

To make UIView first responder, Subclass UIView and return true from canBecomeFirstResponder.

Then Return MIMessageInputView as input accessory view.

class ConversationDetailView: UIView {

    // MARK: - Variables
    let messageInputView:MIMessageInputView = MIMessageInputView()

    // MARK: - Life cycle methods

    override var canBecomeFirstResponder: Bool{
        return true
    }
    override var inputAccessoryView: UIView?{
        return messageInputView
    }

}

UIViewController can also become first responder and MIMessageInputView can be returned as accessory view.

Set delegate to MIMessageInputView where you want to receive call when user press send with all the details.

Author

Akshay Kuchhadiya, [email protected]

License

MessageInputManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MessageInputManager",
    "summary": "iMessage style chat message input controller.",
    "description": "MessageInputManager provides Chat input view which allows users to input text message, and media message similar to Apple iMessage app. It Allows users to select images from user' Camera Roll album and allows to Capture photo using native camera inline.",
    "version": "1.0.1",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "homepage": "https://github.com/kuchhadiyaa/MessageInputManager",
    "screenshots": [
        "https://raw.githubusercontent.com/kuchhadiyaa/MessageInputManager/master/Screenshots/SS1.PNG",
        "https://raw.githubusercontent.com/kuchhadiyaa/MessageInputManager/master/Screenshots/SS2.PNG"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Akshay Kuchhadiya": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kuchhadiyaa/MessageInputManager.git",
        "tag": "1.0.1"
    },
    "source_files": "MessageInputManager/Classes/**/*",
    "social_media_url": "https://www.twitter.com/anonymous_akkii",
    "resources": "MessageInputManager/Assets/**/*",
    "frameworks": [
        "UIKit",
        "Photos",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This