{"id":2075,"url":"https://github.com/Nirma/UIFontComplete","last_synced_at":"2025-08-06T13:32:27.030Z","repository":{"id":44884458,"uuid":"76535657","full_name":"Nirma/UIFontComplete","owner":"Nirma","description":"Font management (System \u0026 Custom) for iOS and tvOS","archived":false,"fork":false,"pushed_at":"2023-11-07T07:59:18.000Z","size":132,"stargazers_count":1328,"open_issues_count":0,"forks_count":47,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-11-30T21:35:42.430Z","etag":null,"topics":["uifont"],"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/Nirma.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-12-15T07:39:18.000Z","updated_at":"2024-11-22T06:25:37.000Z","dependencies_parsed_at":"2022-09-10T20:22:18.161Z","dependency_job_id":"4117a718-dbe8-4d05-aa4f-5251b0cfc6b9","html_url":"https://github.com/Nirma/UIFontComplete","commit_stats":{"total_commits":92,"total_committers":12,"mean_commits":7.666666666666667,"dds":0.3586956521739131,"last_synced_commit":"b7d1db2847ed14382d7c69069ae56370e7b5b006"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nirma%2FUIFontComplete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nirma%2FUIFontComplete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nirma%2FUIFontComplete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nirma%2FUIFontComplete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nirma","download_url":"https://codeload.github.com/Nirma/UIFontComplete/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228624381,"owners_count":17947736,"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":["uifont"],"created_at":"2024-01-05T20:16:02.867Z","updated_at":"2024-12-09T14:30:54.135Z","avatar_url":"https://github.com/Nirma.png","language":"Swift","funding_links":[],"categories":["Text","Libs","Swift","Testing","Fonts [🔝](#readme)","Tools for resources","Font"],"sub_categories":["Font","Fonts","Other free courses"],"readme":"# UIFontComplete\n[![Build Status](https://travis-ci.org/Nirma/UIFontComplete.svg?branch=master)](https://travis-ci.org/Nirma/UIFontComplete)\n![Swift 5.0](https://img.shields.io/badge/Swift-5.0-orange.svg)\n![platforms](https://img.shields.io/badge/platforms-iOS%20%7C%20tvOS-333333.svg)\n![CodeCov](https://img.shields.io/codecov/c/github/Nirma/UIFontComplete.svg)\n[![CocoaPods compatible](https://img.shields.io/cocoapods/v/UIFontComplete.svg)](#cocoapods)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n [![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n[![License](http://img.shields.io/:license-mit-blue.svg)](http://doge.mit-license.org)\n\nFont management (System \u0026 Custom) for iOS and tvOS\n\n## Usage \nNo more wasted time searching for names of `UIFont` fonts and no more surprises at runtime if a font name was mistyped.\nThis library is simply one extension to `UIFont` and one `Font` `enum` with a case for each system font on iOS and tvOS. \nCustom font support is also available, please keep reading for details!\n\nInstead of using the `String` based constructor native to `UIFont`:\n\n```swift\nlet font = UIFont(name: \"Arial-BoldItalicMT\", size: 12.0)\n```\n\nYou can now simply start typing the name of the font enum and let code completion help you:\n\n![](http://i.imgur.com/yBYRQVB.gif)\n\nThis library currently provides two different options for creating `UIFont` objects.\nThe first is calling the font name off of the provided `BuiltInFont` enumeration and then calling `of(size:)`\nto provide the desired size.\n\n```swift\nlet myFont: UIFont? = BuiltInFont.helvetica.of(size: 12.0)\n```\n\nThe other `UIFont` creation method offered by this library is similar to the normal `UIFont`\nconstructor except that instead of providing a `String` of the desired font, a case of the `Font` enum is provided instead.\n\n```swift\nlet font = UIFont(font: .arialBoldItalicMT, size: 12.0)\n```\n\n### What about Custom Fonts?\nCustom Fonts can be added with the help of the `FontRepresentable` protocol.\nSimply create your own `CustomFont` `String` based enumeration that adapts the \n`FontRepresentable` and add a case per font that you want to add like so:\n\n```swift\n// In your project using custom fonts\n\nenum CustomFont: String, FontRepresentable {\n    case alexBrushRegular = \"AlexBrush-Regular\"\n}\n\nCustomFont.alexBrushRegular.of(size: 12.0) // =\u003e UIFont\n```\n\n### SwiftUI support\n\nSwiftUI Font is handled in a same way as UIKit UIFont.\n\nYou can do both:\n\n```swift\nlet myFont: Font = BuiltInFont.helvetica.of(size: 12.0)\n```\n\n\n\n```swift\nlet font = Font(font: .arialBoldItalicMT, size: 12.0)\n```\n\n\n\n## Installation\n\n#### Carthage\n\nIf you use Carthage to manage your dependencies, simply add\nUIFontComplete to your `Cartfile`:\n\n```\ngithub \"Nirma/UIFontComplete\"\n```\n\nIf you use Carthage to build your dependencies, make sure you have added `UIFontComplete.framework` to the \"_Linked Frameworks and Libraries_\" section of your target, and have included `UIFontComplete.framework` in your Carthage framework copying build phase.\n\n#### CocoaPods\n\nIf you use CocoaPods to manage your dependencies, simply add\nUIFontComplete to your `Podfile`:\n\n```\npod 'UIFontComplete'\n```\n\n#### Swift Package Manager\n\nIn Xcode, select File \u003e Add Packages, then copy-paste the URL for this repository to the search field and hit the \"Add Package\" button.\n\n## Requirements\n\n* Xcode 9.0\n* Swift 4.0+\n\n## Contributing to UIFontComplete\n**Pull Requests are Welcome!**\nIf you feel that this library could be made better then please do so by sending over a pull request! \n\n## License\n\nUIFontComplete is free software, and may be redistributed under the terms specified in the [LICENSE] file.\n\n[LICENSE]: /LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNirma%2FUIFontComplete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNirma%2FUIFontComplete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNirma%2FUIFontComplete/lists"}