Skip to content

CodeFork/GoogleMaterialIconFont

 
 

Repository files navigation

GoogleMaterialIconFont

Carthage compatible CI Status Version License Platform

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 1.2+
Xcode 6.3+

for iOS7 support
Follow [Manual usage instruction](#Manual Usage)

Installation

CocoaPods

GoogleMaterialIconFont is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GoogleMaterialIconFont"

Then, run pod install

In case you haven't installed CocoaPods yet, run the following command

$ gem install cocoapods

Carthage

GoogleMaterialIconFont is available through Carthage.

To install GoogleMaterialIconFont into your Xcode project using Carthage, specify it in your Cartfile:

github "kitasuke/GoogleMaterialIconFont" Then, run carthage update

You can see Carthage/Build/iOS/GoogleMaterialIconFont.framework now, so drag and drop it to Embedded Binaries in General menu tab with your project.

In case you haven't installed Carthage yet, run the following command

$ brew update
$ brew install carthage

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.

About

Google Material Design Icons for Swift and ObjC project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 94.3%
  • Ruby 3.7%
  • Objective-C 2.0%