{"id":20199523,"url":"https://github.com/andylindebros/lbdigit","last_synced_at":"2026-05-08T12:38:25.524Z","repository":{"id":187837610,"uuid":"677667076","full_name":"andylindebros/LBDigit","owner":"andylindebros","description":"Provides a digit view for SwiftUI projects","archived":false,"fork":false,"pushed_at":"2023-08-12T09:24:02.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T19:52:38.297Z","etag":null,"topics":["digit","digitalclock","swift","swiftui"],"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/andylindebros.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-12T08:19:55.000Z","updated_at":"2023-08-12T09:09:26.000Z","dependencies_parsed_at":"2023-08-12T10:14:20.194Z","dependency_job_id":null,"html_url":"https://github.com/andylindebros/LBDigit","commit_stats":null,"previous_names":["andylindebros/lbdigit"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylindebros%2FLBDigit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylindebros%2FLBDigit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylindebros%2FLBDigit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andylindebros%2FLBDigit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andylindebros","download_url":"https://codeload.github.com/andylindebros/LBDigit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637149,"owners_count":19994925,"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":["digit","digitalclock","swift","swiftui"],"created_at":"2024-11-14T04:37:57.977Z","updated_at":"2026-05-08T12:38:20.480Z","avatar_url":"https://github.com/andylindebros.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LBDigit\nLBDigit provides a Digit written in Swift and SwiftUI. \n\n![Demo](https://github.com/andylindebros/LBDigit/blob/main/Docs/animation.gif)\n\n\n## How to use.\n\n### Install the Swift package\n1. In Xcode, with your app project open, navigate to File \u003e Add Packages.\n2. When prompted, add LBDigit \n```\nhttps://github.com/andylindebros/LBDigit.git\n```\n3. Select the version that you want to use\n4. Select the library.\n\n### How to use it\nAdd the Digit to your view.\n```Swift\nimport LBDigit\n\nstruct ContentView: View {\n    var body: some View {\n        Digit(\n            value: 1, // Represents the number that should be presented as a digit\n            thickness: 10, // The thickness of the arms, Default is 10.\n            distance: 1, // The distance between the arms. Default is 1\n            color: Color.gray, // The color of the arms\n            highligtedColor: Color.red, // the highlighted color of the arms\n            applyHighlightedShaddow: true // Apply shadows to the hightlighted arms. Default is true\n        )\n    }\n}\n```\n\n### Available states:\n- 0 - 9\n- 10 represents a dash sign `-`\n- 11 represents `e` as in error\n- 12 represents no number\n\nThis Swift package provides an example of how `LBDigit` can be used. Open the `LBDigitExample` in Xcode to find out more how it works.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandylindebros%2Flbdigit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandylindebros%2Flbdigit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandylindebros%2Flbdigit/lists"}