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 متاح بموجب ترخيص معهد ماساتشوستس للتكنولوجيا. انظر ملف الترخيص لمزيد من المعلومات.