Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.34 KB

README.md

File metadata and controls

79 lines (54 loc) · 2.34 KB

FontIcons

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, marek.matula@gmail.com

License

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