ieayoio / ISEmojiView

Emoji Keyboard for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ISEmojiView Version Carthage Compatible License Platform Swift

An easy to use Emoji keyboard for iOS.

Has been rewritten with swift, the old Objective-C version on branch oc.

screenshot

Example

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

Requirements

  • Swift3
  • iOS8+
  • Xcode8

Useage

Installation

Cocoapods

# Swift
pod 'ISEmojiView'

# Objective-C
pod 'ISEmojiView', '0.0.1'

Carthage

github "isaced/ISEmojiView"

Import

import ISEmojiView

Initialization

let emojiView = ISEmojiView()
emojiView.delegate = self
textView.inputView = emojiView

Custom emoji list, you can read emojis from file or other

let emojiView = ISEmojiView(emojis: [[String]])

Delegate

func emojiViewDidSelectEmoji(emojiView: ISEmojiView, emoji: String) {
    textView.insertText(emoji)
}
    
func emojiViewDidPressDeleteButton(emojiView: ISEmojiView) {
    textView.deleteBackward()
}

Customize

// long press to pop preview effect like iOS10 system emoji keyboard, Default is true
public var isShowPopPreview = true

License

MIT

About

Emoji Keyboard for iOS

License:MIT License


Languages

Language:Swift 90.6%Language:Ruby 6.6%Language:Objective-C 2.7%