测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可协议 | MIT |
发布上次发布 | 2015年9月 |
SPM支持SPM | ✗ |
由Patrik Vaberer维护。
关注我:@vaberer
我喜欢★。别忘了为这个超级方便的库点赞。
Google Material Design Icons Swift库适用于iOS。不再需要图像图标。使用Google Material Design Icons Swift库非常简单。查看演示应用程序,该应用程序显示了所有图标及其名称,或者只需访问Google Design Material Icons。
pod 'Google-Material-Design-Icons-Swift', :git => 'https://github.com/Vaberer/Google-Material-Design-Icons-Swift.git', :branch => 'swift1.2'
GMDIcon.swift
和GMDIcons.ttf
文件复制到您的项目中GMDIcons.ttf
,在“项目”>“目标”>“复制 Bundle 资源”中导入添加图标超简单的方式。
labelName.GMDIcon = GMDType.GMDPublic
//or if you want to set an icon size, use:
labelName.setGMDIcon(GMDType.GMDPublic, iconSize: 30)
labelName.textColor = UIColor.redColor()
buttonName.setGMDIcon(GMDType.GMDPublic, forState: .Normal)
//or if you want to set an icon size, use:
buttonName.setGMDIcon(GMDType.GMDPublic, iconSize: 35, forState: .Normal)
buttonName.setTitleColor(UIColor.redColor(), forState: .Normal)
//Standard font size
barName.GMDIcon = GMDType.GMDPublic
//Custom font size
barName.setGMDIcon(GMDType.GMDPublic, iconSize: 35)
barName.tintColor = UIColor.redColor()
Patrik Vaberer,[email protected]
Google Material Design Icons Swift是以MIT许可协议提供的。有关更多信息,请参阅LICENSE文件。