GoogleMD Icons
1.0.0
Cara mudah untuk menggunakan ikon desain material Google di aplikasi Anda.
Pastikan Anda memiliki versi cocoapods versi terbaru dengan menjalankan:
$ gem install cocoapodsPerbarui repo spesifikasi lokal Anda dengan menjalankan:
$ pod repo update Tambahkan baris berikut ke Podfile Anda:
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endKemudian jalankan perintah berikut
$ pod installAnda dapat mulai menggunakan perpustakaan dengan mengimpornya di mana pun Anda inginkan
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 tersedia di bawah lisensi MIT. Lihat file lisensi untuk info lebih lanjut.