Latest 1.0.0
Homepage https://github.com/zoho/zomoji-iOS-keyboard
License Apache
Copyright (c) 2017, ZOHO CORPORATION
All rights reserved.

Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Platforms ios 8.0
Dependencies YYImage
Authors

Zomoji Keyboard

A custom view for your UITextFields and UITextViews that has all the Zomojis that you can get!

Installation

CocoaPods

To add Zomoji Keyboard to your project, include the following in your PodFile:

pod 'ZomojiKeyboard'

Users who have objective c code bases will have to add the following code to their PodFile as well.

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'ZomojiKeyboard'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.0'
            end
        end
    end
end

XCode 9 doesn’t set the swift version correctly for Swift libraries within Objective C projects. If you find a better solution, feel free to fork and update.

Manual

If you prefer not to use CocoaPods, copy all the files within the Keyboard and Utils folders in addition to ZomojiAssets.xcassets.

Usage

  1. Create a KeyboardController object and set a delegate ( that conforms to ZKeyboardDelegate ) if you want callbacks.
  2. Use the keyboard(withParams:) function of the KeyboardController to get the custom input view and assign it as the inputView of your UITextField or UITextView
  3. When any Zomoji (be it live or static) is tapped, a dictionary is sent along with the callback. This dictionary will contain
    1. The data of the chosen image
    2. A boolean to describe if the image is animatable or not
    3. The number of frames an animatable image would contain
    4. The starting frame of the animation
    5. And, the name of the image tapped
  4. You can use this information to present the Zomojis to your users

Any suggestions for improvements are welcome

Latest podspec

{
    "name": "ZomojiKeyboard",
    "version": "1.0.0",
    "summary": "Custom input view for iOS Keyboards with Zomojis",
    "license": {
        "type": "Apache",
        "text": "n  Copyright (c) 2017, ZOHO CORPORATIONn  All rights reserved.nn  Licensed under the Apache License, Version 2.0 (the "License");n  you may not use this file except in compliance with the License.n  You may obtain a copy of the License atnn      http://www.apache.org/licenses/LICENSE-2.0nn  Unless required by applicable law or agreed to in writing, softwaren  distributed under the License is distributed on an "AS IS" BASIS,n  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.n  See the License for the specific language governing permissions andn  limitations under the License.nn"
    },
    "homepage": "https://github.com/zoho/zomoji-iOS-keyboard",
    "authors": {
        "Vijay Sankar S": "vijaysankar[email protected]"
    },
    "source": {
        "git": "https://github.com/zoho/zomoji-iOS-keyboard.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://zomojis.com/",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": [
        "Keyboard/*.swift",
        "Utils/*.swift"
    ],
    "resources": [
        "Resources/ZomojiAssets.xcassets"
    ],
    "module_name": "ZomojiKeyboard",
    "dependencies": {
        "YYImage": [
            "~> 1.0.4"
        ]
    },
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This