GoogleMaterialIconFont 0.5.0

GoogleMaterialIconFont 0.5.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Sep 2016
SPMSupports SPM

Maintained by kitasuke.



  • By
  • kitasuke

GoogleMaterialIconFont

Google Material Design Icons for Swift and ObjC project

This library is inspired by FontAwesome.swift

Both Swift and Objctive-C are supported
See example project or Material icons more detail

Usage

Swift

import GoogleMaterialIconFont

label.text = String.materialIcon(.Favorite)
label.font = UIFont.materialIconOfSize(32)

Objective-C

import #import <GoogleMaterialIconFont/GoogleMaterialIconFont-Swift.h>

label.text = [NSString materialIcon:MaterialIconFontFavoriteBorder];
label.font = [UIFont materialIconOfSize:32];

Requirements

iOS8+
Swift 2.3+
Xcode 8.0+

Installation

Manual

Copy all the files in Pod directory into your project. Make sure that GoogleMaterialIconFont.ttf is specified into Fonts provided by application in your project’s info.plist

License

This library uses material-design-icons by Google to create icon font file which is GoogleMaterialIconFont.ttf. Therefore, GoogleMaterialIconFont.ttf is available under the Creative Common Attribution 4.0 International License (CC-BY 4.0)

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