GoogleMD Icons
1.0.0
วิธีที่ง่ายในการใช้ไอคอนการออกแบบวัสดุของ Google ในแอพของคุณ
ตรวจสอบให้แน่ใจว่าคุณมี cocoapods เวอร์ชันล่าสุดโดยใช้งาน:
$ gem install cocoapodsอัปเดตข้อมูลจำเพาะในพื้นที่ของคุณ repo โดยการรัน:
$ 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 ) Adam Golczak ([email protected])
GOOGLEMD-ICONS มีอยู่ภายใต้ใบอนุญาต MIT ดูไฟล์ใบอนุญาตสำหรับข้อมูลเพิ่มเติม