Coder Social home page Coder Social logo

isemojiview's Introduction

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

Others

If you are looking for a React Native solution, take a look at this brendan-rius/react-native-emoji-keyboard

License

MIT

isemojiview's People

Contributors

isaced avatar richy486 avatar

Watchers

James Cloos avatar Byungkook Jang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.