Latest 1.5.0
Homepage https://github.com/marekmatula/FontIcons.Swift
License MIT
Platforms ios 8.0, requires ARC
Authors

Universal library for Font icons.
Contains those default implementations:

Source code is based on Font-Awesome-Swift

Need any other font? Create a issue with details.

CI Status
Version
License
Platform

Usage

  • Use FontIcons 1.1.0 with Swift 2.2
  • Use FontIcons 1.2.1 with Swift 2.3
  • Use FontIcons 1.3.1 with Swift 3.0
  • Use FontIcons 1.4.x with Swift => 3.2
  • Use FontIcons 1.5.x with Swift => 4.2

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

Requirements

  • Xcode 8

Installation

FontIcons is available through CocoaPods. To install
it, simply add the one or more following lines to your Podfile:

pod "FontIcons/FontAwesome"
pod "FontIcons/VaadinIcons"
pod "FontIcons/MaterialDesign"
pod "FontIcons/Ionicons"

Import library in your swift file:

import FontIcons

Set icon with methods

func setFontIcon()
func setFontIconText() 

See Extensions.swift for other available methods.
Supported classes are:

UIButton, UIBarButtonItem, UILabel, UIImageView, UITabBarItem, UISegmentedControl, UIImage, UISlider

Author

Marek Matula, [email protected]

License

FontIcons is available under the MIT license. See the LICENSE file for more info.
FontFiles have own licenses:

Latest podspec

{
    "name": "FontIcons",
    "version": "1.5.0",
    "summary": "Swift Font icon library",
    "description": "Universal library for Font icons. Default implementation for FontAwesome and Vaadin Icons.nEasy extensible to other fonts.",
    "homepage": "https://github.com/marekmatula/FontIcons.Swift",
    "license": "MIT",
    "authors": {
        "Marek Matula": "[email protected]"
    },
    "source": {
        "git": "https://github.com/marekmatula/FontIcons.Swift.git",
        "tag": "1.5.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "subspecs": [
        {
            "name": "Core",
            "source_files": [
                "Pod/Classes/FontIcons.swift",
                "Pod/Classes/Extensions.swift"
            ]
        },
        {
            "name": "FontAwesome",
            "dependencies": {
                "FontIcons/Core": []
            },
            "source_files": "Pod/Classes/FontAwesome.swift",
            "resource_bundles": {
                "FontAwesome": [
                    "Pod/Assets/FontAwesome.ttf"
                ]
            }
        },
        {
            "name": "VaadinIcons",
            "dependencies": {
                "FontIcons/Core": []
            },
            "source_files": "Pod/Classes/VaadinIcons.swift",
            "resource_bundles": {
                "VaadinIcons": [
                    "Pod/Assets/Vaadin-Icons.ttf"
                ]
            }
        },
        {
            "name": "MaterialDesign",
            "dependencies": {
                "FontIcons/Core": []
            },
            "source_files": "Pod/Classes/MaterialDesignIcons.swift",
            "resource_bundles": {
                "MaterialDesignIcons": [
                    "Pod/Assets/MaterialIcons-Regular.ttf"
                ]
            }
        },
        {
            "name": "Ionicons",
            "dependencies": {
                "FontIcons/Core": []
            },
            "source_files": "Pod/Classes/Ionicons.swift",
            "resource_bundles": {
                "Ionicons": [
                    "Pod/Assets/ionicons.ttf"
                ]
            }
        }
    ]
}

Pin It on Pinterest

Share This