Latest 1.1.0
Homepage https://github.com/ranesr/EmojiOne
License MIT
Platforms ios 8.0
Authors

Swift Library for EmojiOne

CocoaPods Platform Swift Codebeat Badge

Travis

Please ★ this library.

This EmojiOne library helps you use icons from EmojiOne.

EmojiOne library currently supports UIImageView, UILabel and UIButton.

Requirements

  • iOS 8.0+
  • Xcode 8

Installation

Cocoapods

CocoaPods is a dependency manager for Cocoa projects.

Make sure you have the latest version of CocoaPods by running:

$ gem install cocoapods
# (or if the above fails)
$ sudo gem install cocoapods

Update your local specs repo by running:

$ pod repo update

Add the following lines to your Podfile:

target 'YourAwesomeProject' do
    use_frameworks!
    pod 'EmojiOne'
end

Then run the following command

$ pod install

You can start using the library by importing it wherever you want

import EmojiOne

Swift Package Manager

You can use The Swift Package Manager to install EmojiOne by adding the proper description to your Package.swift file:

import PackageDescription

let package = Package(
    name: "YourAwesomeProject",
    targets: [],
    dependencies: [
        .Package(url: "https://github.com/ranesr/EmojiOne", majorVersion: 1)
    ]
)

Note that the Swift Package Manager is still in early design and development, for more information checkout its GitHub Page

Manually

Copy this file from Sources folder.

EmojiOne.swift

Usage

UIImageView


// Setting emoji to image view
imageView.setEmoji(emoji: .speechLeft)
imageView.setEmoji(emoji: .womanRowingBoat)

UILabel


// Setting emoji to label
label.setEmoji(prefixText: "PREFIX TEXT ", emoji: .manFarmerTone4, postfixText: " POSTFIX TEXT")
label.setEmoji(prefixText: "", emoji: .flashlight, postfixText: " POSTFIX TEXT")
label.setEmoji(prefixText: "PREFIX TEXT ", emoji: .cruiseShip, postfixText: "")

UIButton


// Setting emoji to label
button.setEmoji(title: " TITLE", emoji: .clock12, forState: .normal)

Examples

Please check out the EmojiOne App.

Author

Saurabh Rane

Licence

EmojiOne is available under the MIT License. See the LICENSE file for more info.

Latest podspec

{
    "name": "EmojiOne",
    "version": "1.1.0",
    "summary": "EmojiOne - A library for using EmojiOne icons",
    "description": "EmojiOne library helps you use icons from EmojiOne. EmojiOne 3.0 contains over 2,560 stunning emoji icons in total.",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Saurabh Rane": "[email protected]"
    },
    "social_media_url": "https://github.com/ranesr",
    "homepage": "https://github.com/ranesr/EmojiOne",
    "source": {
        "git": "https://github.com/ranesr/EmojiOne.git",
        "tag": "1.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Sources/EmojiOne.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This