GoogleMD Icons
1.0.0
Una manera fácil de usar íconos de diseño de material de Google en su aplicación.
Asegúrese de tener la última versión de Cocoapods ejecutando:
$ gem install cocoapodsActualice su repositorio de especificaciones locales ejecutando:
$ pod repo update Agregue las siguientes líneas a su Podfile :
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endLuego ejecute el siguiente comando
$ pod installPuede comenzar a usar la biblioteca importándola donde quiera
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 bajo la licencia MIT. Consulte el archivo de licencia para obtener más información.