GoogleMD Icons
1.0.0
Простой способ использовать значки разработки материалов Google в вашем приложении.
Убедитесь, что у вас есть последняя версия Cocoapods, работая:
$ gem install cocoapodsОбновите свои локальные спецификации, работая:
$ pod repo update Добавьте следующие строки в свой Podfile :
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endЗатем запустите следующую команду
$ pod installВы можете начать использовать библиотеку, импортируя ее везде, где вы хотите
import GoogleMD_Iconsimport GoogleMD_Icons
// Set icon
imageView . image = UIImage . googleMDIcon ( icon : . accountBalance , size : CGSize ( width : 150.0 , height : 150.0 ) )
// Set icon with color
imageView . image = UIImage . googleMDIcon ( icon : . accountBalance , size : CGSize ( width : 150.0 , height : 150.0 ) , color : . orange )
// Set icon with color and icon code
imageView . image = UIImage . googleMDIcon ( icon : GoogleMDIconType ( name : " account_balance " ) ! , size : CGSize ( width : 150.0 , height : 150.0 ) , color : . orange )import GoogleMD_Icons
// Set icon
imageView = UIImageView . googleMDIcon ( icon : . accountBalance , size : CGSize ( width : 150.0 , height : 150.0 ) )
// Set icon with color
imageView = UIImageView . googleMDIcon ( icon : . accountBalance , size : CGSize ( width : 150.0 , height : 150.0 ) , color : . orange )
// Set icon with color and icon code
imageView = UIImageView . googleMDIcon ( icon : GoogleMDIconType ( name : " account_balance " ) ! , size : CGSize ( width : 150.0 , height : 150.0 ) , color : . orange ) Адам Голцзак ([email protected])
Googlemd-Icons доступен по лицензии MIT. Смотрите файл лицензии для получения дополнительной информации.