{"id":26281060,"url":"https://github.com/yonat/systemfontoverride","last_synced_at":"2025-03-14T15:19:01.180Z","repository":{"id":249220088,"uuid":"830920905","full_name":"yonat/SystemFontOverride","owner":"yonat","description":"Easy font branding for your iOS app","archived":false,"fork":false,"pushed_at":"2024-07-25T10:03:22.000Z","size":175,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T20:25:12.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/yonat.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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,"publiccode":null,"codemeta":null},"funding":{"github":["yonat"]}},"created_at":"2024-07-19T09:25:54.000Z","updated_at":"2024-10-20T19:26:12.000Z","dependencies_parsed_at":"2024-07-19T12:05:47.108Z","dependency_job_id":"b9de6c10-cdca-412f-a852-e3dcc5fb6417","html_url":"https://github.com/yonat/SystemFontOverride","commit_stats":null,"previous_names":["yonat/systemfontoverride"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSystemFontOverride","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSystemFontOverride/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSystemFontOverride/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yonat%2FSystemFontOverride/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yonat","download_url":"https://codeload.github.com/yonat/SystemFontOverride/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243597813,"owners_count":20316845,"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":[],"created_at":"2025-03-14T15:19:00.528Z","updated_at":"2025-03-14T15:19:01.170Z","avatar_url":"https://github.com/yonat.png","language":"Swift","funding_links":["https://github.com/sponsors/yonat"],"categories":[],"sub_categories":[],"readme":"# SystemFontOverride\n\nEasy font branding for your iOS app.\n\n[![Swift Version][swift-image]][swift-url]\n[![License][license-image]][license-url]\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/SystemFontOverride.svg)](https://img.shields.io/cocoapods/v/SystemFontOverride.svg)\n[![Platform](https://img.shields.io/cocoapods/p/SystemFontOverride.svg?style=flat)](http://cocoapods.org/pods/SystemFontOverride)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n\n\u003cimg align=\"center\" src=\"Screenshots/SystemFontOverride.png\"\u003e\n\n## Features\n\n* Override the default system font with your own branded font.\n* Compatible with both UIKit and SwiftUI.\n* Simple and intuitive API for quick integration.\n\n## Usage\n\nInstant font branding, automatically overriding system font:\n\n```swift\nUIFont.systemFontFamilyOverride = \"Marker Felt\" // replace with appropriate font\n```\n\nExplicitly specify font in UIKit:\n\n```swift\nsomeUIKitElement.font = .systemFontOverride(size: 16)\n```\n\nExplicitly specify font in SwiftUI:\n\n```swift\nsomeSwiftUIView\n    .font(.systemOverride(size: 16))\n```\n\n## Installation\n\n### CocoaPods:\n\n```ruby\npod 'SystemFontOverride'\n```\n\n### Swift Package Manager:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/yonat/SystemFontOverride\", from: \"1.0.0\")\n]\n```\n\n## Limitations\n\nMost UI elements will just work with the override font.\n\nHowever, a few elements completely ignore the override:\n- Sheet presented by `ColorPicker` or `UIColorWell`\n\nAdditionally, some SwiftUI controls require explicit `.font()` modifier to update their title font:\n- `Picker`\n- `Menu`\n- `Toggle`\n- `bordered` and `borderedProminent` button styles\n- `Label` in some contexts\n\nSee the Demo app for details.\n\n## Mechanism\n\nTo automatically override the system font, SystemFontOverride uses [method swizzling](https://developer.apple.com/documentation/objectivec/1418769-method_exchangeimplementations) for `UIFont.systemFont(ofSize:)` and related methods.\n\nSegmented controls and `UITextField` ignore the system font override, but their `appearance()` proxy correctly sets their titles to the override font. \n\n[swift-image]:https://img.shields.io/badge/swift-5.0-orange.svg\n[swift-url]: https://swift.org/\n[license-image]: https://img.shields.io/badge/License-MIT-blue.svg\n[license-url]: LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fsystemfontoverride","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyonat%2Fsystemfontoverride","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyonat%2Fsystemfontoverride/lists"}