GoogleMaterialIconFont 0.5.0

GoogleMaterialIconFont 0.5.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2016 年 9 月
SPM支持 SPM

kitasuke 维护。



  • kitasuke

GoogleMaterialIconFont

适用于 Swift 和 ObjC 项目的 Google Material Design 图标

此库受 FontAwesome.swift 的启发

支持 Swift 和 Objective-C
查看示例项目或更多细节 Material 图标

用法

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];

要求

iOS8+
Swift 2.3+
Xcode 8.0+

安装

手动

Pod 目录中的所有文件复制到您的项目中。确保在项目的 info.plist 中指定了 GoogleMaterialIconFont.ttf

许可证

此库使用 Google 的 material-design-icons 创建图标字体文件,即 GoogleMaterialIconFont.ttf。因此,GoogleMaterialIconFont.ttf 可在 Creative Common Attribution 4.0 国际许可证 (CC-BY 4.0) 之下使用。

GoogleMaterialIconFont 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。