Latest 0.1.0
Homepage https://github.com/josejuanqm/JQSwiftIcon
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Jose Quintero/JQSwiftIcon.svg?style=flat)](https://travis-ci.org/Jose Quintero/JQSwiftIcon)
Version
License
Platform

JQSwiftIcon
JQSwiftIcon

Installation

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

pod "JQSwiftIcon"

Example

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

Cheat Sheets

First, check out the Cheat Sheets

IMPORTANT: All clasess containing "_" or "-" have been replaced by "."

Name Prefix Cheat Sheet
Material Icons mat Link
Font Awesome fa Link
Ion Icons ii Link
Map Icons mp Link
Octicons oi Link
Open Iconic inic Link
Themify th Link

Placeholder Structure

< Prefix >:< Icon Class >

Usage

In your UILabel, UIButton or UITextField, set a text containing a placeholder anywhere you want the icon to be. Somethink like this

fa:building

Then you can choose between 2 ways you can use JQSwiftIcon.

1. No Custom Class

Simply call processIcons on any UILabel, UIButton or UITextField that has a placeholder.

myLabel.processIcons()

2. Custom Class

The lazy way, just set your UILabel, UIButton class as JQIconLabel or JQIconButton, and thats it, your icons will be processed at runtime.

Author

Jose Quintero, [email protected]

License

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

Latest podspec

{
    "name": "JQSwiftIcon",
    "version": "0.1.0",
    "summary": "String interpolation made for icon fonts.",
    "description": "Easily implement Icon Fonts with iOS projects, using String interpolation JQSwiftIcon replaces arguments with real icons.",
    "homepage": "https://github.com/josejuanqm/JQSwiftIcon",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jose Quintero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josejuanqm/JQSwiftIcon.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/josejuanqm",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JQSwiftIcon/Classes/**/*",
    "resource_bundles": {
        "JQSwiftIcon": [
            "JQSwiftIcon/Classes/Resources/*.ttf"
        ]
    }
}

Pin It on Pinterest

Share This