Latest3.0.1
Homepagehttps://github.com/lojals/JOEmojiableBtn
LicenseMIT
Platformsios 8.0, requires ARC
Authors

Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

📱🍕📱🍕📱🍕📱🍕📱


Installation

JOEmojiableBtn is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JOEmojiableBtn"

Examples

1. Basic Instance

This instance create a JOEmojiableBtn using default JOEmojiableBtnConfig.
Images from Trump reactionpacks style.

Example Code

let optionsDataset = [
    JOEmojiableOption(image: "img_1", name: "img1"),
    JOEmojiableOption(image: "img_2", name: "img2"),
    JOEmojiableOption(image: "img_3", name: "img3"),
    JOEmojiableOption(image: "img_4", name: "img4"),
    JOEmojiableOption(image: "img_5", name: "img5"),
    JOEmojiableOption(image: "img_6", name: "img6")
]

let buttonSample1 = JOEmojiableBtn(frame: CGRect(origin: CGPoint(x: 40, y: 200), size: CGSize(width: 100, height: 50)))
buttonSample1.delegate = self
buttonSample1.backgroundColor = .green
buttonSample1.dataset = optionsDataset
view.addSubview(buttonSample1)

Sample 1

2. Custom styled instance

Example Code

With this instance you can fully custom your component. Following the JOEmojiableConfig variables.

You can custom your selector with the following variables, used in the

687474703a2f2f692e696d6775722e636f6d2f65347a616179652e706e673f31

image

let config = JOEmojiableConfig(spacing: 2,
                                size: 30,
                                minSize: 34,
                                maxSize: 45,
                                spaceBetweenComponents: 30)

let buttonSample2 = JOEmojiableBtn(frame: CGRect(origin: CGPoint(x: 40, y: 300), size: CGSize(width: 100, height: 50)), config: config)
buttonSample2.delegate = self
buttonSample2.backgroundColor = .green
buttonSample2.dataset = optionsDataset
view.addSubview(buttonSample2)

Author

Jorge Ovalle, [email protected]

image

License

JOEmojiableBtn is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JOEmojiableBtn",
    "version": "3.0.1",
    "summary": "Option selector that works similar to Reactions by fb",
    "description": "Totally customizable Options (Emoji) Selector based on Reactions",
    "homepage": "https://github.com/lojals/JOEmojiableBtn",
    "license": "MIT",
    "authors": {
        "Jorge Ovalle": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lojals/JOEmojiableBtn.git",
        "tag": "3.0.1"
    },
    "social_media_url": "https://twitter.com/lojals_",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This