Universal library for Font icons. Contains those default implementations:
- FontAwesome 4.7.0
- VaadinIcons 2.0.0
- MaterialDesignIcons 3.0.1
- Ionicons 2.0.1
Source code is based on Font-Awesome-Swift
Need any other font? Create a issue with details.
- 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.
- Xcode 8
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
Marek Matula, [email protected]
FontIcons is available under the MIT license. See the LICENSE file for more info. FontFiles have own licenses: