Skip to content

ieayoio/ISEmojiView

 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.7%
  • Ruby 6.6%
  • Objective-C 2.7%