{"id":2068,"url":"https://github.com/segecey/SwiftIconFont","last_synced_at":"2025-08-06T13:32:34.044Z","repository":{"id":27717429,"uuid":"31204609","full_name":"segecey/SwiftIconFont","owner":"segecey","description":"Icons fonts for iOS (Font Awesome 5, Iconic, Ionicon, Octicon, Themify, MapIcon, MaterialIcon, Foundation 3, Elegant Icon, Captain Icon)","archived":false,"fork":false,"pushed_at":"2022-08-05T12:12:28.000Z","size":2708,"stargazers_count":1165,"open_issues_count":1,"forks_count":118,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-10-29T17:43:31.643Z","etag":null,"topics":["cocoapods","font","fonts","icons","swift","uibarbuttonitem","uibutton","uilabel","uitextfield"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segecey.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["segecey"]}},"created_at":"2015-02-23T11:05:20.000Z","updated_at":"2024-09-15T07:32:02.000Z","dependencies_parsed_at":"2022-08-24T23:21:39.319Z","dependency_job_id":null,"html_url":"https://github.com/segecey/SwiftIconFont","commit_stats":null,"previous_names":["0x73/sdeviconfonts"],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segecey%2FSwiftIconFont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segecey%2FSwiftIconFont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segecey%2FSwiftIconFont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segecey%2FSwiftIconFont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segecey","download_url":"https://codeload.github.com/segecey/SwiftIconFont/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228046871,"owners_count":17861106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","font","fonts","icons","swift","uibarbuttonitem","uibutton","uilabel","uitextfield"],"created_at":"2024-01-05T20:16:02.683Z","updated_at":"2024-12-09T14:30:55.157Z","avatar_url":"https://github.com/segecey.png","language":"Swift","funding_links":["https://github.com/sponsors/segecey"],"categories":["Text","Libs"],"sub_categories":["Font","Fonts"],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/segecey/SwiftIconFont/master/Assets/logo.png\" alt=\"SwiftIconFont Banner\"\u003e\u003c/p\u003e\n\n[![Issues](https://img.shields.io/github/issues/segecey/SwiftIconFont)](#)\n[![Forks](https://img.shields.io/github/forks/segecey/SwiftIconFont)](#)\n[![Stars](https://img.shields.io/github/stars/segecey/SwiftIconFont)](#)\n[![Build Status](https://travis-ci.org/segecey/SwiftIconFont.svg)](https://travis-ci.org/segecey/SwiftIconFont)\n[![Version](https://img.shields.io/cocoapods/v/SwiftIconFont.svg?style=flat)](http://cocoapods.org/pods/SwiftIconFont)\n[![License](https://img.shields.io/cocoapods/l/SwiftIconFont.svg?style=flat)](http://cocoapods.org/pods/SwiftIconFont)\n[![Platform](https://img.shields.io/badge/Platforms-iOS%C2%A0%7C%20macOS%20%7C%20tvOS-green)](http://cocoapods.org/pods/SwiftIconFont)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)\n\n## Installation\n\n### SPM\n\n**Not yet supported. Please use Cocoapods or Carthage**\n\n### Carthage\n\n```bash\ngithub \"segecey/SwiftIconFont\"\n```\n\n### Cocoapods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects.\n\nYou can install it with the following command:\n\n```bash\ngem install cocoapods\n```\n\nTo integrate SwiftIconFont into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nuse_frameworks!\n\npod 'SwiftIconFont'\n```\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Prefixes\n\n| Font                 | Prefix | Cheat Sheet                                                                            |\n| -------------------- | ------ | -------------------------------------------------------------------------------------- |\n| Font Awesome 5       | fa5:   | [List](http://fontawesome.io/icons/)                                                   |\n| Font Awesome 5 Brand | fa5b:  | [List](http://fontawesome.io/icons/)                                                   |\n| Font Awesome 5 Solid | fa5s:  | [List](http://fontawesome.io/icons/)                                                   |\n| Ion Icons            | io:    | [List](http://ionicons.com)                                                            |\n| Octicons             | oc:    | [List](https://octicons.github.com)                                                    |\n| Open Iconic          | ic:    | [List](https://useiconic.com/open/)                                                    |\n| Material Icon        | ma:    | [List](https://design.google.com/icons/)                                               |\n| Themify              | ti:    | [List](https://themify.me/themify-icons)                                               |\n| Map Icons            | mi:    | [List](http://map-icons.com)                                                           |\n| Segoe MDL2           | sm:    | [List](https://docs.microsoft.com/en-us/windows/uwp/design/style/segoe-ui-symbol-font) |\n| Foundation 3         | fo:    | [List](https://zurb.com/playground/foundation-icon-fonts-3)                            |\n| Elegant Icon         | el:    | [List](https://www.elegantthemes.com/blog/resources/elegant-icon-font)                 |\n| Captain              | cp:    | Please check example project.                                                          |\n\n## Fonts\n\n```swift\npublic enum Fonts: String {\n    case fontAwesome5 = \"FontAwesome5Free-Regular\"\n    case fontAwesome5Brand = \"FontAwesome5Brands-Regular\"\n    case fontAwesome5Solid = \"FontAwesome5Free-Solid\"\n    case iconic = \"open-iconic\"\n    case ionicon = \"Ionicons\"\n    case octicon = \"octicons\"\n    case themify = \"themify\"\n    case mapIcon = \"map-icons\"\n    case materialIcon = \"MaterialIcons-Regular\"\n    case segoeMDL2 = \"Segoe mdl2 assets\"\n    case foundation = \"fontcustom\"\n    case elegantIcon = \"ElegantIcons\"\n    case captain = \"captainicon\"\n}\n```\n\n## Storyboard\n\n\u003cp align=\"left\"\u003e\u003ca href=\"https://www.youtube.com/watch?v=kWex5gqR8rs\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/segecey/SwiftIconFont/master/Assets/storyboard-t.gif\" alt=\"SwiftIconFont Banner\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Runtime Structure\n\n\u003e \u003c Prefix \u003e:\u003c Icon \u003e\n\n## Usage\n\nIn your UILabel, UIButton or UITextField, set a text containing a placeholder anywhere you want the icon to be. Somethink like this\n\n\u003e oc:logo-github\n\nThen you can choose between 3 ways you can use SwiftIconFont.\n\n#### 1. Without Custom Class\n\nSimply import SwiftIconFont and call processIcons on any UILabel, UIButton or UITextField that has a placeholder.\n\n```swift\nlabel.parseIcon()\n```\n\n#### 2. Custom Class\n\nThe lazy way, just set your UILabel, UITextField, UIButton, UITextView, UIBarButtonItem class as SwiftIconLabel, SwiftIconTextField, SwiftIconButton, SwiftIconTextView, SwiftBarButtonItem, and thats it, your icons will be processed at runtime.\n\n#### 3. Programmatically\n\n```swift\nimport SwiftIconFont\n\nlabel.font = UIFont.icon(from: .fontAwesome5, ofSize: 50.0)\nlabel.text = String.fontAwesome5Icon(code: \"twitter\")\n```\n\n#### UIBarButtonItem (Without Custom Class)\n\n```swift\nimport SwiftIconFont\n\ntwitterBarButton.icon(from: .fontAwesome5, code: \"twitter\", ofSize: 20)\n```\n\n#### UITabBarItem (Without Custom Class)\n\n```swift\nimport SwiftIconFont\n\ntwitterTabBarButton.icon(from: .fontAwesome5, code: \"twitter\", imageSize: CGSizeMake(20, 20), ofSize: 20)\n```\n\n#### UIImage\n\n```swift\nimport SwiftIconFont\n\nlet githubLogo = UIImage(from: .octicon, code: \"logo-github\", textColor: .black, backgroundColor: .clear, size: CGSize(width: 150, height: 50))\n```\n\n#### UIImageView\n\n```swift\nimport SwiftIconFont\n\nlet githubLogoImageView: UIImageView = UIImageView(frame: CGRect(x: 120, y: self.view.frame.size.height - 130, width: 150, height: 50))\ngithubLogoImageView.setIcon(from: .octicon, code: \"logo-github\", textColor: .black, backgroundColor: .clear, size: nil)\n```\n\n#### macOS\n\n- NSTextField, NSImage, NSView\n- Please check **ExampleMac** project\n\n## Author\n\nSedat ÇİFTÇİ - me@sedat.ninja\n\n## Contributors\n\n\u003cspan\u003e\u003ca href=\"https://github.com/josejuanqm\"\u003ejosejuanqm\u003c/a\u003e\u003c/span\u003e\n\n## License\n\nSwiftIconFont is available under the MIT license. See the LICENSE file for more info.\n\n## Contributing\n\n1. Fork it (\u003chttp://github.com/segecey/SwiftIconFont/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegecey%2FSwiftIconFont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegecey%2FSwiftIconFont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegecey%2FSwiftIconFont/lists"}