GoogleMD Icons
1.0.0
Eine einfache Möglichkeit, Google -Material -Design -Symbole in Ihrer App zu verwenden.
Stellen Sie sicher, dass Sie die neueste Version von Cocoapods durch Laufen haben:
$ gem install cocoapodsAktualisieren Sie Ihre lokalen Spezifikationen Repo, indem Sie ausführen:
$ pod repo update Fügen Sie Ihrem Podfile die folgenden Zeilen hinzu:
target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
endFühren Sie dann den folgenden Befehl aus
$ pod installSie können die Bibliothek verwenden, indem Sie sie überall importieren, wo Sie möchten
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 ist unter der MIT-Lizenz verfügbar. Weitere Informationen finden Sie in der Lizenzdatei.