Google Material Design Icons for Swift and ObjC project

Overview

GoogleMaterialIconFont

Carthage compatible CI Status Version License Platform

Google Material Design Icons for Swift and ObjC project

This library is inspired by FontAwesome.swift

Both Swift and Objctive-C are supported
See example project or Material icons more detail

Usage

Swift

import GoogleMaterialIconFont

label.text = String.materialIcon(.Favorite)
label.font = UIFont.materialIconOfSize(32)

Objective-C

import #import <GoogleMaterialIconFont/GoogleMaterialIconFont-Swift.h>

label.text = [NSString materialIcon:MaterialIconFontFavoriteBorder];
label.font = [UIFont materialIconOfSize:32];

Requirements

iOS8+
Swift 2.3+
Xcode 8.0+

Installation

CocoaPods

GoogleMaterialIconFont is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GoogleMaterialIconFont"

post_install do |installer|
 installer.pods_project.targets.each do |target|
   target.build_configurations.each do |config|
     config.build_settings['SWIFT_VERSION'] = '2.3'
   end
 end
end

Then, run pod install

In case you haven't installed CocoaPods yet, run the following command

$ gem install cocoapods

Carthage

GoogleMaterialIconFont is available through Carthage.

To install GoogleMaterialIconFont into your Xcode project using Carthage, specify it in your Cartfile:

github "kitasuke/GoogleMaterialIconFont" Then, run carthage update --toolchain com.apple.dt.toolchain.Swift_2_3

You can see Carthage/Build/iOS/GoogleMaterialIconFont.framework now, so drag and drop it to Embedded Binaries in General menu tab with your project.

In case you haven't installed Carthage yet, download the latest pkg from Carthage

Manual

Copy all the files in Pod directory into your project. Make sure that GoogleMaterialIconFont.ttf is specified into Fonts provided by application in your project's info.plist

License

This library uses material-design-icons by Google to create icon font file which is GoogleMaterialIconFont.ttf. Therefore, GoogleMaterialIconFont.ttf is available under the Creative Common Attribution 4.0 International License (CC-BY 4.0)

GoogleMaterialIconFont is available under the MIT license. See the LICENSE file for more info.

Comments
  • update font definitions, add class generator

    update font definitions, add class generator

    With the codepoints file provided in the Google repo, the enum can now easily be generated.

    https://github.com/google/material-design-icons/tree/master/iconfont

    opened by koenpunt 4
  • Carthage unable to find ttf file

    Carthage unable to find ttf file

    I believe this commit (https://github.com/kitasuke/GoogleMaterialIconFont/commit/b6baa8e3242877e67d872a6df952a3bde2029b2e) is causing this error when running carthage update:

    ... /Carthage/Checkouts/GoogleMaterialIconFont/Pod/Assets/GoogleMaterialIconFont.ttf: No such file or directory
    A shell task failed with exit code 65:
    ** BUILD FAILED **
    

    I presume this is due to the .ttf file being renamed to MaterialIcons-Regular.ttf?

    opened by concertiv 3
  • CocoaPods won't build o n XCode 8.3

    CocoaPods won't build o n XCode 8.3

    While building the Swift 3 version of the library it freezes on 'Compile Swift source files'. Other frameworks build with no problem and on the previous version of XCode there were no problems either. schermafbeelding 2017-03-28 om 15 28 55

    opened by fabiangiger 1
  • Swift 2.3 compatibility (Xcode 8)

    Swift 2.3 compatibility (Xcode 8)

    The master branch has a couple lines that need changing for Swift 2.3 compatibility. I forked it and modified my fork for anyone who wants a quick fix. If you create a new swift2.3 branch, I'd be happy to submit a pull request.

    pod 'GoogleMaterialIconFont', :git => 'https://github.com/bowerylabs/GoogleMaterialIconFont.git'

    opened by wafisher 1
  • Xcode 8.3 stuck at compiling GoogleMaterialIconFont

    Xcode 8.3 stuck at compiling GoogleMaterialIconFont

    Hello,

    today I updated to Xcode 8.3. While building my app (which worked!) the compilation is stuck at "Building GoogleMaterialIconFont" (see attached image).

    Any ideas what goes wrong? How can this be fixed?

    Kind regards googlematerialiconfont

    opened by ArturGasparyan 6
  • Not supported for small letters

    Not supported for small letters

    When I am trying to use this icon along with text small letters are missing. Any thoughts ? Refer the screen shots

    MOM All caps

    screen shot 2016-02-05 at 1 57 27 pm

    MoM "o" Small screen shot 2016-02-05 at 1 57 49 pm

    opened by mohanmoorthy 1
Releases(0.5.0)
Owner
Yusuke Kita
Software Engineer
Yusuke Kita
Google Material Design Icons Font for iOS

GoogleMaterialDesignIcons #Google Material Design Icons Font for iOS It is based on https://github.com/google/material-design-icons. it converts the m

Yuji Hato 365 Oct 19, 2022
SwiftUIFontIcon The easiest way to implement font icons in your SwiftUI project.

SwiftUIFontIcon The easiest way to implement font icons in your SwiftUI project. Usage The library is super super easy to use, just something like thi

Bui Dac Huy 81 Dec 27, 2022
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons.

FontAwesomeKit Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. Version 2.2 Notable Changes Not Jus

Pride Chung 2.8k Jan 6, 2023
🎢 Swift Library for Font Icons

Swift Library for Font Icons Please ★ this library. Now, you don't have to download different libraries to include different font icons. This SwiftIco

Saurabh Rane 781 Dec 6, 2022
Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)

Installation SPM Not yet supported. Please use Cocoapods or Carthage Carthage github "0x73/SwiftIconFont" Cocoapods CocoaPods is a dependency manager

sedat çiftçi 1.1k Dec 14, 2022
Programmatically load custom fonts into your iOS and tvOS app.

FontBlaster Programmatically load custom fonts into your iOS and tvOS app. About Say goodbye to importing custom fonts via property lists as FontBlast

Arthur Ariel Sabintsev 1.1k Jan 3, 2023
Font management (System & Custom) for iOS and tvOS

UIFontComplete Font management (System & Custom) for iOS and tvOS Usage No more wasted time searching for names of UIFont fonts and no more surprises

Nicholas Maccharoli 1.3k Nov 14, 2022
Auto-generated icon font library for iOS, watchOS and tvOS

Iconic helps making icon fonts integration effortless on iOS, tvOS and watchOS. Its main component is in charge of auto-generating strongly typed Swif

Home Assistant 1.6k Nov 12, 2022
Generator of settings icon by SF Symbols. Customisable background color and ready-use in table cell.

SPSettingsIcons Generate settings icons by Apple's SF Symbols. For safe using SFSymbols see SPSafeSymbols library. Installation Swift Package Manager

Sparrow Code 110 Dec 28, 2022
Use FontAwesome in your Swift projects

FontAwesome.swift Use Font Awesome in your Swift projects To see the complete set of 3,978 icons in Font Awesome 5, please check the FontAwesome.com s

Thi Doãn 1.6k Dec 30, 2022
Use Ionicons in your Swift projects.

IoniconsKit IoniconsKit internally use ionicons.ttf v2.0.1 Example To run the example project, clone the repo, and run pod install from the Example di

Keita Oouchi 313 Dec 8, 2022
Use Octicons in your Swift projects.

OcticonsKit OcticonsKit internally use octicons.ttf v4.3.0 Example To run the example project, clone the repo, and run pod install from the Example di

Keita Oouchi 52 Jan 31, 2022
OpenSansSwift - Easily use the OpenSans font in Swift.

OpenSansSwift Easily use the OpenSans font in Swift. Why use OpenSansSwift frameworks ? The usual process of embedding any custom fonts in your IOS ap

Hemant Sapkota 42 Jan 29, 2022
Font Awesome swift library for iOS.

Font Awesome Swift Follow me: @vaberer I like ★. Do not forget to ★ this super convenient library. Added UISegmentedControl & UITabbarItem & UISlider

Patrick Vaberer 746 Dec 17, 2022
Font Awesome support in Swift

MCFontAwesome Font Awesome v4.1.0 for Swift Font aliases has not been ported yet, in order to refer to a font you have to strip all the - (minus) insi

Matteo Crippa 19 Jun 9, 2020
round icon drag control (made in swift) dock style

ASBubbleDrag Bubble drag control integrate in storyboard : Installation CocoaPods You can use CocoaPods to install ASBubbleDrag by adding it to your P

Alberto Scampini 46 Oct 12, 2022
Pretendard Fonts for iOS (Swift Package Manager)

PretendardKit Pretendard 1.3.3 을 기반으로 합니다. Install (Swift Package Manager) dependencies: [ .package(url: "https://github.com/wookeon/PretendardKit

Darth Vader 1 Jun 2, 2022
Use 1600+ icons (and more!) from FontAwesome and Google Material Icons in your swift/iOS project in an easy and space-efficient way!

Swicon Use 1600+ icons from FontAwesome and Google Material Icons in your iOS project in an easy and space-efficient way! The built-in icons are from

Zhibo 39 Nov 3, 2022
Google Material Design Icons Font for iOS

GoogleMaterialDesignIcons #Google Material Design Icons Font for iOS It is based on https://github.com/google/material-design-icons. it converts the m

Yuji Hato 365 Oct 19, 2022
CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc

RNCryptor Cross-language AES Encryptor/Decryptor data format. The primary targets are Swift and Objective-C, but implementations are available in C, C

null 3.3k Dec 30, 2022