{"id":21635687,"url":"https://github.com/levantaj/paddinglabel","last_synced_at":"2025-06-29T01:34:48.551Z","repository":{"id":62450387,"uuid":"157041344","full_name":"levantAJ/PaddingLabel","owner":"levantAJ","description":"A label with padding for iOS","archived":false,"fork":false,"pushed_at":"2020-06-06T04:12:57.000Z","size":69,"stargazers_count":51,"open_issues_count":2,"forks_count":11,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-17T10:16:45.290Z","etag":null,"topics":["cocoapods","insets","ios","label","margin","padding","pod","swift","uilabel"],"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/levantAJ.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-11-11T02:44:30.000Z","updated_at":"2024-11-11T11:20:52.000Z","dependencies_parsed_at":"2022-11-02T01:01:31.825Z","dependency_job_id":null,"html_url":"https://github.com/levantAJ/PaddingLabel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/levantAJ/PaddingLabel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levantAJ%2FPaddingLabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levantAJ%2FPaddingLabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levantAJ%2FPaddingLabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levantAJ%2FPaddingLabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levantAJ","download_url":"https://codeload.github.com/levantAJ/PaddingLabel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levantAJ%2FPaddingLabel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262519662,"owners_count":23323544,"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","insets","ios","label","margin","padding","pod","swift","uilabel"],"created_at":"2024-11-25T03:23:59.846Z","updated_at":"2025-06-29T01:34:48.516Z","avatar_url":"https://github.com/levantAJ.png","language":"Swift","readme":"\u003cp align=\"center\" \u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/6329656/48312433-faebea00-e5e0-11e8-9f0d-6bd63e830c1c.png\" title=\"PaddingLabel logo\" width='444' float=left\u003e\n\u003c/p\u003e\n\n[![Pod Version](https://cocoapod-badges.herokuapp.com/v/PaddingLabel/badge.png)](http://cocoadocs.org/docsets/PaddingLabel/)\n[![Pod Platform](https://cocoapod-badges.herokuapp.com/p/PaddingLabel/badge.png)](http://cocoadocs.org/docsets/PaddingLabel/)\n[![Pod License](https://cocoapod-badges.herokuapp.com/l/PaddingLabel/badge.png)](https://www.apache.org/licenses/LICENSE-2.0.html)\n\n# PaddingLabel\nA label with padding for iOS\n\n\u003cimg width=\"484\" alt=\"Screen Shot 2020-06-06 at 11 00 33\" src=\"https://user-images.githubusercontent.com/6329656/83935710-3616c500-a7e6-11ea-8e7a-efd7dcc3a595.png\"\u003e\n\n## Requirements\n\n- iOS 8.0 or later\n- Xcode 9.0 or later\n\n## Installation\nThere is a way to use PaddingLabel in your project:\n\n- Using CocoaPods\n- Manually\n\n### Installation with CocoaPods\n\n```\npod 'PaddingLabel', '1.2'\n```\n\n### Manually\n\nManually drag file [PaddingLabel.swift](https://github.com/levantAJ/PaddingLabel/blob/master/PaddingLabel/PaddingLabel.swift) to your project. \n\n\n### Build Project\n\nAt this point your workspace should build without error. If you are having problem, post to the Issue and the\ncommunity can help you solve it.\n\n## How To Use\n\n### Storyboard:\n- Change class of `UILabel` in your `storyboard`, `xib` to `PaddingLabel`.\n\n\u003cimg width=\"552\" alt=\"Screen Shot 2020-06-06 at 11 08 58\" src=\"https://user-images.githubusercontent.com/6329656/83935709-33b46b00-a7e6-11ea-89e3-572d89f895a9.png\"\u003e\n\n### Programmatically:\n\n```swift\nimport PaddingLabel\n\nlet label = PaddingLabel(frame: CGRect(x: 0, y: 0, width: 500, height: 100))\nlabel.topInset = 5.0 //by default\nlabel.bottomInset = 5.0 //by default\nlabel.leftInset = 7.0 //by default\nlabel.rightInset = 7.0 //by default\n\n```\n\n## Author\n- [Tai Le](https://github.com/levantAJ)\n\n## Communication\n- If you **need help**, use [Stack Overflow](https://stackoverflow.com/questions/27459746/adding-space-padding-to-a-uilabel/32368958#32368958).\n- If you **found a bug**, open an issue.\n- If you **have a feature request**, open an issue.\n- If you **want to contribute**, submit a pull request.\n\n## Licenses\n\nAll source code is licensed under the [MIT License](https://raw.githubusercontent.com/levantAJ/PaddingLabel/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevantaj%2Fpaddinglabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevantaj%2Fpaddinglabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevantaj%2Fpaddinglabel/lists"}