{"id":21318375,"url":"https://github.com/mezhevikin/tinylayout","last_synced_at":"2025-07-06T23:01:57.310Z","repository":{"id":178070010,"uuid":"538029799","full_name":"mezhevikin/TinyLayout","owner":"mezhevikin","description":"📐 A tiny syntactic sugar for NSLayoutConstraint. Only 50 lines of codes.","archived":false,"fork":false,"pushed_at":"2022-09-18T11:11:03.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-22T11:11:34.904Z","etag":null,"topics":["autolayout","constraints","dsl","frame","ios","layout","masonry","nslayoutanchor","nslayoutconstraint","snapkit","sugar","swift","swifty"],"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/mezhevikin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-18T07:08:15.000Z","updated_at":"2022-09-18T08:20:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"a496babb-b405-4621-b611-750c007353a8","html_url":"https://github.com/mezhevikin/TinyLayout","commit_stats":null,"previous_names":["mezhevikin/tinylayout"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FTinyLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FTinyLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FTinyLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mezhevikin%2FTinyLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mezhevikin","download_url":"https://codeload.github.com/mezhevikin/TinyLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243796741,"owners_count":20349264,"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":["autolayout","constraints","dsl","frame","ios","layout","masonry","nslayoutanchor","nslayoutconstraint","snapkit","sugar","swift","swifty"],"created_at":"2024-11-21T19:12:34.230Z","updated_at":"2025-03-15T22:14:13.931Z","avatar_url":"https://github.com/mezhevikin.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TinyLayout\n\n📐 A tiny syntactic sugar for NSLayoutConstraint. Only 50 lines of codes.\n\n```swift\nclass SettingCell: UITableViewCell {\n    let iconView = UIImageView()\n    let titleLabel = UILabel()\n    let valueLabel = UILabel()\n    \n    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {\n        super.init(style: style, reuseIdentifier: reuseIdentifier)\n        \n        addSubviews([iconView, titleLabel, valueLabel], constraints: [\n            iconView.leftAnchor.equal(leftAnchor, 15),\n            iconView.centerYAnchor.equal(centerYAnchor),\n            iconView.widthAnchor.equal(32),\n            iconView.heightAnchor.equal(32),\n            \n            titleLabel.leftAnchor.equal(iconView.rightAnchor, 15),\n            titleLabel.topAnchor.equal(topAnchor),\n            titleLabel.bottomAnchor.equal(bottomAnchor),\n            \n            valueLabel.leftAnchor.equal(titleLabel.rightAnchor),\n            valueLabel.topAnchor.equal(topAnchor),\n            valueLabel.bottomAnchor.equal(bottomAnchor),\n            valueLabel.rightAnchor.equal(rightAnchor, -15)\n        ])\n    }\n}\n\n```\n\n### Swift Package Manager\n\n```\nhttps://github.com/mezhevikin/TinyLayout.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezhevikin%2Ftinylayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmezhevikin%2Ftinylayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmezhevikin%2Ftinylayout/lists"}