• Stars
    star
    145
  • Rank 254,144 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Google Material Design Icons for Swift and ObjC project

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 2.3+
Xcode 8.0+

Installation

CocoaPods

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

pod "GoogleMaterialIconFont"

post_install do |installer|
 installer.pods_project.targets.each do |target|
   target.build_configurations.each do |config|
     config.build_settings['SWIFT_VERSION'] = '2.3'
   end
 end
end

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 --toolchain com.apple.dt.toolchain.Swift_2_3

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, download the latest pkg from Carthage

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.

More Repositories

1

PagingMenuController

Paging view controller with customizable menu in Swift
Swift
2,497
star
2

SwiftUI-MVVM

Sample iOS project built by SwiftUI + MVVM and Combine framework using GitHub API
Swift
681
star
3

monkey-go

"Writing An Interpreter in Go" and "Wring A Compiler in Go"
Go
201
star
4

SwiftUI-Redux

Sample iOS project built by SwiftUI + Redux(ReSwift) and Combine framework using GitHub API
Swift
108
star
5

SwiftUI-Flux

Sample iOS project built by SwiftUI + Flux and Combine framework using GitHub API
Swift
93
star
6

Cardio

Simple HealthKit wrapper for workout in watchOS 2
Swift
81
star
7

IBOutletRewriter

@IBOutlet code formatter using SwiftSyntax
Swift
71
star
8

SwiftConst

Find in Swift repeated strings that could be replaced by a constant using SwiftSyntax
Swift
36
star
9

monkey-swift

"Writing An Interpreter in Go" and "Wring A Compiler in Go" in Swift
Swift
30
star
10

MVVMLint

linter tool for data flow in MVVM
Swift
23
star
11

GithubCLI.swift

Command line tool for Github in Swift
Swift
16
star
12

SwiftProtobufSample

Sample project for client/server in Swift with Protocol Buffers
Swift
13
star
13

TwitterClientDemo

A twitter client app without any open source libraries in Swift
Swift
8
star
14

SwiftProtobufSample-APIKit

Sample project for client/server in Swift with Protocol Buffers
Swift
7
star
15

UmbrellaFrameworkApp

Sample iOS project with umbrella framework + CocoaPods
Swift
4
star
16

talks

Slide for my talks
3
star
17

bitrise-step-swift-package-manager-xcodeproj-for-mac

Go
2
star
18

Cloud-Functions-in-Go

Sample projects from this book https://booth.pm/en/items/1306074
Go
2
star
19

UIHostingControllerDemo

Swift
1
star