Home

Awesome

<img src="https://cdn.rawgit.com/jkalash/croc/4dd2f48/Resources/Croc.svg" width="370"/>

Croc is a library for parsing emojis on iOS. It provides a simple and lightweight interface for detecting, generating, categorizing and managing emoji characters, making emoji-powered features an easy task for developers.

Build Status CocoaPods Compatible CocoaPods Carthage Compatible Platform License Swift-4.0 Codecov Donate

Usage

Checking for emojis

checking emojis

Querying for emojis

querying emojis

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

CocoaPods 1.1+ is required to build Croc

To integrate Croc into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'Croc'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate Croc into your Xcode project using Carthage, specify it in your Cartfile:

github "JKalash/Croc"

Run carthage update to build the framework and drag the built Croc.framework into your Xcode project.

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but Croc does support its use on supported platforms.

Once you have your Swift package set up, adding Croc as a dependency is as easy as adding it to the dependencies value of your Package.swift.

Swift 3

dependencies: [
    .Package(url: "https://github.com/JKalash/Croc.git", majorVersion: 0)
]

Swift 4

dependencies: [
    .package(url: "https://github.com/JKalash/Croc.git", from: "0.0.0")
]

Manually

If you prefer not to use any of the aforementioned dependency managers, you can integrate Croc into your project manually.

Embedded Framework

Requirements

Author

Joseph Kalash, josephkalash@gmail.com

Donation

If this project helps you reduce time to develop, you can give me a cup of coffee :)

forthebadge

License

Croc is released under the MIT license. See LICENSE for details.