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 ) Adam Golczak ([email protected])
Googlemd-Icons는 MIT 라이센스로 제공됩니다. 자세한 내용은 라이센스 파일을 참조하십시오.