TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Sep 2015 |
SPMSupports SPM | ✗ |
Maintained by Patrik Vaberer.
Follow me: @vaberer
I like ★. Do not forget to ★ this super convenient library.
Google Material Design Icons Swift library for iOS. No image icons any more. Using Google Material Design Icons Swift library is very easy to use. Look at the demo app which shows all icons and their names or just visit 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
and GMDIcons.ttf
files into your projectGMDIcons.ttf
in project, “Project” > “Target” > “Copy Bundle Resources”Super easy way how to add an icon.
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 is available under the MIT license. See the LICENSE file for more info.