Latest 1.2.1
Homepage https://github.com/ConfusedVorlon/HS-Google-Material-Design-Icons
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit, CoreText
Authors ,

Google Material Design Icons

Forked from original project by @vaberer

Updated for Swift 4.2
The code now lists many more icons from the 3.0.1 release, and includes the updated font file

Code is somewhat rewritten to make updating icons much easier – but it is almost completely compatible with the original.

If you want a new icon, you just have to find and update the codepoint.
See instructions in the demo project UpdatingNotes.txt on how to do that.

Various convenience methods have been updated to make them even more convenient.

Google Material Design Icons Swift library for iOS.
It uses font glyphs rather than images, so they can be displayed perfectly at any size & resolution. Google Design Material Icons.

HS-Google-Material-Design-Icons

Requirements

  • iOS 8.0+
  • Xcode 10

Installation

CocoaPods

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'HS-Google-Material-Design-Icons'

Do not forget to import to your swift files where you want to use this library:

import HS_Google_Material_Design_Icons

Usage

UILabel

    labelName.GMDIcon = .gmdPublic

    labelName.textColor = UIColor.redColor()

UIButton

    buttonName.setGMDIcon(.gmdPublic)

    //or if you want to set an icon size and/or specify the state, use:
    buttonName.setGMDIcon(.gmdPublic, forState: .highlighted, iconSize: 30)

    buttonName.setTitleColor(UIColor.redColor(), forState: .normal)

UIBarButtonItem

    //Standard font size
    barName.GMDIcon = .gmdPublic

    //Custom font size
    barName.setGMDIcon(.gmdPublic, iconSize: 35)

    barName.tintColor = UIColor.redColor()

Original Author

Patrik Vaberer, [email protected]

Licence

Google Material Design Icons is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "HS-Google-Material-Design-Icons",
    "version": "1.2.1",
    "swift_version": "4.2",
    "license": "MIT",
    "summary": "Google Material Design Icons Library for iOS",
    "description": "Forked from Google-Material-Design-Icons-SwiftnUpdated with new Material Icons (up to Sept 2018)nUpdated to make identifying and adding new icons easiernEasily use Google Material icons throughout your project with scale independant vector sources.",
    "homepage": "https://github.com/ConfusedVorlon/HS-Google-Material-Design-Icons",
    "screenshots": "https://raw.githubusercontent.com/ConfusedVorlon/HS-Google-Material-Design-Icons/master/resources/image1.png",
    "authors": [
        "Rob Jonson",
        "Patrik Vaberer"
    ],
    "source": {
        "git": "https://github.com/ConfusedVorlon/HS-Google-Material-Design-Icons.git",
        "tag": "1.2.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": [
        "Source/GMDIcon.swift"
    ],
    "resource_bundles": {
        "HS-Google-Material-Design-Icons": "Source/GMDIcons.ttf"
    },
    "frameworks": [
        "UIKit",
        "CoreText"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This