{"id":16806977,"url":"https://github.com/acecilia/sugaredges","last_synced_at":"2025-07-29T02:34:41.013Z","repository":{"id":56922243,"uuid":"106920781","full_name":"acecilia/SugarEdges","owner":"acecilia","description":"Syntactic sugar for init UIEdgeInsets and other similar objects","archived":false,"fork":false,"pushed_at":"2018-03-15T15:16:49.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T05:55:52.620Z","etag":null,"topics":["apple","edges","insets","swift","swift4","syntactic-sugar"],"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/acecilia.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":"2017-10-14T11:02:44.000Z","updated_at":"2018-03-15T15:16:37.000Z","dependencies_parsed_at":"2022-08-20T22:20:26.257Z","dependency_job_id":null,"html_url":"https://github.com/acecilia/SugarEdges","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/acecilia/SugarEdges","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acecilia%2FSugarEdges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acecilia%2FSugarEdges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acecilia%2FSugarEdges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acecilia%2FSugarEdges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acecilia","download_url":"https://codeload.github.com/acecilia/SugarEdges/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acecilia%2FSugarEdges/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267619607,"owners_count":24116591,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["apple","edges","insets","swift","swift4","syntactic-sugar"],"created_at":"2024-10-13T09:52:32.662Z","updated_at":"2025-07-29T02:34:40.992Z","avatar_url":"https://github.com/acecilia.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SugarEdges\nSyntactic sugar for init UIEdgeInsets and other similar objects.\n\n## Usage\nRemember to import SugarEdges at the top of the file:\n\n```swift\nimport SugarEdges\n```\n\nThen, instead of initiating like this:\n\n```swift\nlet insets: UIEdgeInsets = UIEdgeInsets(top: 20, left: 10, bottom: 0, right: 10)\n```\n\nYou can do it like this:\n\n```swift\nlet insets: UIEdgeInsets = [.top: 20, .left + .right: 10]\n```\n\nIf you want to use this kind of initialization for other types, just make them conform to the ```ExpressibleByEdgesDictionaryLiteral``` protocol.\n\n## Example\n\nTo run the example project, clone the repo, and open the workspace found under the ```Example``` folder with Xcode.\n\n## Installation\n\nSugarEdges is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'SugarEdges'\n```\n\n## Author\n\nAndrés Cecilia Luque (acecilia) \u003ca.cecilia.luque@gmail.com\u003e\n\n## License\n\nSugarEdges is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facecilia%2Fsugaredges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facecilia%2Fsugaredges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facecilia%2Fsugaredges/lists"}