GoogleMD Icons
1.0.0
Un moyen facile d'utiliser des icônes Google Material Design dans votre application.
Assurez-vous d'avoir la dernière version de Cocoapods en fonctionnant:
$ gem install cocoapodsMettez à jour votre dépôt de spécifications locales en fonctionnant:
$ pod repo update Ajoutez les lignes suivantes à votre Podfile :
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endPuis exécutez la commande suivante
$ pod installVous pouvez commencer à utiliser la bibliothèque en l'important où vous voulez
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 ) Adam Golczak ([email protected])
Googlemd-Icons est disponible sous la licence MIT. Voir le fichier de licence pour plus d'informations.