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ライセンスの下で入手できます。詳細については、ライセンスファイルを参照してください。