GoogleMD Icons
1.0.0
Uma maneira fácil de usar os ícones do Google Material Design em seu aplicativo.
Certifique -se de ter a versão mais recente do Cocoapods executando:
$ gem install cocoapodsAtualize o repositório de especificações locais executando:
$ pod repo update Adicione as seguintes linhas ao seu Podfile :
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endEm seguida, execute o seguinte comando
$ pod installVocê pode começar a usar a biblioteca importando -a onde quiser
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])
O Googlemd-icons está disponível sob a licença do MIT. Consulte o arquivo de licença para obter mais informações.