• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

kitasuke/GoogleMaterialIconFont: Google Material Design Icons for Swift and ObjC ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

kitasuke/GoogleMaterialIconFont

开源软件地址(OpenSource Url):

https://github.com/kitasuke/GoogleMaterialIconFont

开源编程语言(OpenSource Language):

Swift 94.2%

开源软件介绍(OpenSource Introduction):

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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap