{"id":13465744,"url":"https://github.com/huybuidac/SwiftUIFontIcon","last_synced_at":"2025-03-25T16:32:42.530Z","repository":{"id":45818609,"uuid":"290285066","full_name":"huybuidac/SwiftUIFontIcon","owner":"huybuidac","description":"The easiest way to implement font icons in your SwiftUI project.","archived":false,"fork":false,"pushed_at":"2020-09-04T02:39:40.000Z","size":563,"stargazers_count":132,"open_issues_count":4,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-10T07:18:00.666Z","etag":null,"topics":["font","fontawesome","fonticons","ionicons","material-icons","swiftui"],"latest_commit_sha":null,"homepage":"https://github.com/huybuidac/SwiftUIFontIcon","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/huybuidac.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-25T17:53:15.000Z","updated_at":"2025-02-26T14:52:02.000Z","dependencies_parsed_at":"2022-09-04T17:11:02.398Z","dependency_job_id":null,"html_url":"https://github.com/huybuidac/SwiftUIFontIcon","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huybuidac%2FSwiftUIFontIcon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huybuidac%2FSwiftUIFontIcon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huybuidac%2FSwiftUIFontIcon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huybuidac%2FSwiftUIFontIcon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huybuidac","download_url":"https://codeload.github.com/huybuidac/SwiftUIFontIcon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245500453,"owners_count":20625583,"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":["font","fontawesome","fonticons","ionicons","material-icons","swiftui"],"created_at":"2024-07-31T15:00:34.731Z","updated_at":"2025-03-25T16:32:42.154Z","avatar_url":"https://github.com/huybuidac.png","language":"Swift","funding_links":[],"categories":["Libs","Samples","Fonts [🔝](#readme)","🛠 Examples","UI"],"sub_categories":["Fonts","Libraries","Icon"],"readme":"## SwiftUIFontIcon\n\nThe easiest way to implement font icons in your SwiftUI project.\n\n## Usage\n\nThe library is super super easy to use, just something like this :)\n\n### Text\n\n```swift\nimport SwiftUIFontIcon\n\n// ...\n\nFontIcon.text(.materialIcon(code: .access_alarm))\nFontIcon.text(.materialIcon(code: .access_alarm), fontsize: 30)\n```\n\n![Test Image 3](/resources/demo_code.png)\n\n### Button\n\n```swift\nFontIcon.button(.ionicon(code: .md_add_circle), action: {})\nFontIcon.button(.materialIcon(code: .settings), action: {}, padding: 8)\n    .background(RoundedRectangle(cornerRadius: 4).foregroundColor(.blue))\n```\n\n## Installation\n\n### Cocoapods (Xcode 11 \u0026 Xcode 12)\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\n$ gem install cocoapods\n```\n\nTo integrate SwiftUIFontIcon into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nuse_frameworks!\n\npod 'SwiftUIFontIcon'\n```\n\n### SPM (Xcode 12 only)\n\nThe preferred way of installing SwiftUIFontIcon is via the [Swift Package Manager](https://swift.org/package-manager/).\n\n\u003eXcode 12 integrates with libSwiftPM to provide support for iOS, watchOS, and tvOS platforms.\n\n1. In Xcode, open your project and navigate to **File** → **Swift Packages** → **Add Package Dependency...**\n2. Paste the repository URL (`https://github.com/huybuidac/SwiftUIFontIcon`) and click **Next**.\n3. For **Rules**, select **Branch** (with branch set to `master`).\n4. Click **Finish**.\n5. Open the Project settings, add **SwiftUI.framework** to the **Linked Frameworks and Libraries**, set **Status** to **Optional**.\n\n\n## Sample\n\nTo run the example project of SPM, using **xcode 12 beta**\n\nTo run the example project of Cocoapods, using **xcode 11 || 12 beta**\n\n## Supported fonts\n\nCurrently, SwiftUIFontIcon supports:\n- Material icon\n- Ionicons\n- Font Awesome 5 Free\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuybuidac%2FSwiftUIFontIcon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuybuidac%2FSwiftUIFontIcon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuybuidac%2FSwiftUIFontIcon/lists"}