Latest 1.0.4
Homepage https://github.com/adamgolczak/GoogleMD-Icons
License MIT
Platforms ios 9.0
Authors

[GoogleMD-Icons]()

CI Status
Version
License
Platform

An easy way to use Google Material Design Icons in your app.

Requirements

  • iOS 9.0+
  • Xcode 8

Installation

CocoaPods

Make sure you have the latest version of CocoaPods by running:

$ gem install cocoapods

Update your local specs repo by running:

$ pod repo update

Add the following lines to your Podfile:

target 'YourProject' do
use_frameworks!
pod 'GoogleMD-Icons'
end

Then run the following command

$ pod install

You can start using the library by importing it wherever you want

import GoogleMD_Icons

Usage

UIImage

import 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: "accountBalance")!, size: CGSize(width: 150.0, height: 150.0), color: .orange)

UIImageView

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: "accountBalance")!, size: CGSize(width: 150.0, height: 150.0), color: .orange)

Author

Adam Golczak ([email protected])

License

GoogleMD-Icons is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "GoogleMD-Icons",
    "version": "1.0.4",
    "summary": "Google Material Design Icons Library",
    "description": "s.swift_version = '4.1'nTODO: Add long description of the pod here.",
    "homepage": "https://github.com/adamgolczak/GoogleMD-Icons",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "adamgolczak": "[email protected]"
    },
    "source": {
        "git": "https://github.com/adamgolczak/GoogleMD-Icons.git",
        "tag": "1.0.4"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "GoogleMD-Icons/Classes/**/*",
    "resource_bundles": {
        "GoogleMD-Icons": [
            "GoogleMD-Icons/Assets/*.ttf"
        ]
    }
}

Pin It on Pinterest

Share This