Latest0.0.1
Homepagehttps://github.com/0x73/SDevIconFonts
LicenseApache License, Version 2.0 Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Platformsios 7.0, requires ARC
Authors

Screenshot

Installation

pod 'SDevIconFonts'

Add the Fonts provided by application key to Info.plist

Screenshot

Fonts

public enum Fonts {
    case FontAwesome, Iconic, Ionicon, Octicon
}

Basic Usage

Fontawesome

import SDevIconFonts

...

label.font = UIFont.iconFontOfSize(.FontAwesome, fontSize: 50.0)
label.text = String.fontAwesomeIconWithName(.Twitter)

label.font = UIFont.iconFontOfSize(.FontAwesome, fontSize: 50.0)
label.text = String.fontAwesomeIconWithCode("twitter")

Iconic

...
label.font = UIFont.iconFontOfSize(.Iconic, fontSize: 50.0)
label.text = String.fontIconicIconWithName(.Dial)

...
label.font = UIFont.iconFontOfSize(.Iconic, fontSize: 50.0)
label.text = String.fontIconicIconWithCode("dial")

Ionicon

...
label.font = UIFont.iconFontOfSize(.Ionicon, fontSize: 50.0)
label.text = String.fontIonIconWithName(.Ionic)

...
label.font = UIFont.iconFontOfSize(.Ionicon, fontSize: 50.0)
label.text = String.fontIonIconWithCode("ionic")

Octicon

...
label.font = UIFont.iconFontOfSize(.Octicon, fontSize: 50.0)
label.text = String.fontOcticonWithName(.Octoface)

...
label.font = UIFont.iconFontOfSize(.Octicon, fontSize: 50.0)
label.text = String.fontOcticonWithName("octoface")

Contributing

  1. Fork it (http://github.com/0x73/SDevIconFonts/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Latest podspec

{
    "name": "SDevIconFonts",
    "version": "0.0.1",
    "summary": "Icons fonts for Swift (FontAwesome, Ionicons, Octicons, Iconic)",
    "homepage": "https://github.com/0x73/SDevIconFonts",
    "license": {
        "type": "Apache License, Version 2.0",
        "text": "    Licensed under the Apache License, Version 2.0 (the "License");n    you may not use this file except in compliance with the License.n    You may obtain a copy of the License atnn    http://www.apache.org/licenses/LICENSE-2.0nn    Unless required by applicable law or agreed to in writing, softwaren    distributed under the License is distributed on an "AS IS" BASIS,n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.n    See the License for the specific language governing permissions andn    limitations under the License.n"
    },
    "authors": {
        "Sedat CIFTCI": "[email protected]"
    },
    "social_media_url": "https://twitter.com/sdt_ciftci",
    "source": {
        "git": "https://github.com/0x73/SDevIconFonts.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "SDevIconFont/Classes/*.swift",
    "resources": "SDevIconFont/Resources/FontAwesome.ttf",
    "requires_arc": true
}

Pin It on Pinterest

Share This