{"id":22002187,"url":"https://github.com/kenanatmaca/layoutconstraints","last_synced_at":"2026-05-18T06:35:47.423Z","repository":{"id":130625607,"uuid":"69913675","full_name":"KenanAtmaca/LayoutConstraints","owner":"KenanAtmaca","description":"İOS Simple Autolayout Class","archived":false,"fork":false,"pushed_at":"2016-11-05T14:50:13.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T12:36:45.334Z","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/KenanAtmaca.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,"zenodo":null}},"created_at":"2016-10-03T21:46:06.000Z","updated_at":"2021-07-27T03:35:55.000Z","dependencies_parsed_at":"2024-03-17T10:30:41.680Z","dependency_job_id":null,"html_url":"https://github.com/KenanAtmaca/LayoutConstraints","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KenanAtmaca/LayoutConstraints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FLayoutConstraints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FLayoutConstraints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FLayoutConstraints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FLayoutConstraints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KenanAtmaca","download_url":"https://codeload.github.com/KenanAtmaca/LayoutConstraints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KenanAtmaca%2FLayoutConstraints/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33167700,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T05:43:36.989Z","status":"ssl_error","status_checked_at":"2026-05-18T05:43:19.133Z","response_time":71,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-29T23:16:47.730Z","updated_at":"2026-05-18T06:35:47.418Z","avatar_url":"https://github.com/KenanAtmaca.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LayoutConstraints\nİOS Simple Autolayout Class\n\n```Swift\n        redView = UIView()\n        redView.backgroundColor = UIColor.red\n        view.addSubview(redView)\n        \n        greenView = UIView()\n        greenView.backgroundColor = UIColor.green\n        view.addSubview(greenView)\n        \n        blueView = UIView()\n        blueView.backgroundColor = UIColor.blue\n        view.addSubview(blueView)\n```\n- Use Simple and Easy Programmatically Autolayout Class with Swift \n```Swift\n        let const = LayoutConstraints(to: self.view)\n        const.width(item: greenView, value: 200)\n        const.height(item: greenView, value: 100)\n        const.centerX(item: greenView, toItem: self.view)\n    \n        const.size(item: redView, size: CGSize(width: 100, height: 100))\n        const.centerX(item: redView, toItem: greenView)\n        const.equalBottom(item: redView, toItem: self.view)\n        const.bottom(item: redView, toItem: self.view, value: -40)\n        \n        const.fillWidth(item: blueView, toItem: self.view)\n        const.height(item: blueView, value: 50)\n        const.centerY(item: blueView, toItem: self.view)\n        \n        const.final()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Flayoutconstraints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkenanatmaca%2Flayoutconstraints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkenanatmaca%2Flayoutconstraints/lists"}