Skip to content

vkostechko/ISEmojiView

 
 

Repository files navigation

logo 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

Delegate

Implement <ISEmojiViewDelegate>

// callback when tap a emoji on keyboard
func emojiViewDidSelectEmoji(emojiView: ISEmojiView, emoji: String) {
    textView.insertText(emoji)
}

// callback when tap delete button on keyboard
func emojiViewDidPressDeleteButton(emojiView: ISEmojiView) {
    textView.deleteBackward()
}

Customize

custom emoji list

You can load emojis from file or other, load them in initialization.

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

pop animation

// 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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.5%
  • Ruby 6.8%
  • Objective-C 2.7%