Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kitasuke/GoogleMaterialIconFont
Google Material Design Icons for Swift and ObjC project
https://github.com/kitasuke/GoogleMaterialIconFont
Last synced: 6 days ago
JSON representation
Google Material Design Icons for Swift and ObjC project
- Host: GitHub
- URL: https://github.com/kitasuke/GoogleMaterialIconFont
- Owner: kitasuke
- License: mit
- Created: 2015-09-23T07:06:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T16:45:12.000Z (about 8 years ago)
- Last Synced: 2024-11-25T03:51:24.403Z (17 days ago)
- Language: Swift
- Homepage:
- Size: 230 KB
- Stars: 145
- Watchers: 11
- Forks: 20
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - GoogleMaterialIconFont - Google Material Design Icons for Swift and ObjC project. (Text / Font)
- awesome-swift - GoogleMaterialIconFont - Google Material Icon Font for Swift and ObjC. (UI)
- awesome-ui - GoogleMaterialIconFont - Use the Material Icons in Swift. (Swift / Others)
- awesome-ios-star - GoogleMaterialIconFont - Google Material Design Icons for Swift and ObjC project. (Text / Font)
- awesome-swift-cn - GoogleMaterialIconFont - Google Material Icon Font for Swift and ObjC. (Libs / Fonts)
README
# GoogleMaterialIconFont
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/kitasuke/GoogleMaterialIconFont)
[![CI Status](http://img.shields.io/travis/kitasuke/GoogleMaterialIconFont.svg?style=flat)](https://travis-ci.org/kitasuke/GoogleMaterialIconFont)
[![Version](https://img.shields.io/cocoapods/v/GoogleMaterialIconFont.svg?style=flat)](http://cocoapods.org/pods/GoogleMaterialIconFont)
[![License](https://img.shields.io/cocoapods/l/GoogleMaterialIconFont.svg?style=flat)](http://cocoapods.org/pods/GoogleMaterialIconFont)
[![Platform](https://img.shields.io/cocoapods/p/GoogleMaterialIconFont.svg?style=flat)](http://cocoapods.org/pods/GoogleMaterialIconFont)Google Material Design Icons for Swift and ObjC project
This library is inspired by [FontAwesome.swift](https://github.com/thii/FontAwesome.swift)
Both Swift and Objctive-C are supported
See example project or [Material icons](https://www.google.com/design/icons/) more detail## Usage
### Swift
import `GoogleMaterialIconFont````swift
label.text = String.materialIcon(.Favorite)
label.font = UIFont.materialIconOfSize(32)
```### Objective-C
import `#import `
```objc
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](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
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
```terminal
$ 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](https://github.com/Carthage/Carthage/releases)
### 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](https://github.com/google/material-design-icons) 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)](http://creativecommons.org/licenses/by/4.0/)
GoogleMaterialIconFont is available under the MIT license. See the LICENSE file for more info.