{"id":17540474,"url":"https://github.com/fromkk/shortlayout","last_synced_at":"2025-08-03T11:07:38.337Z","repository":{"id":146698648,"uuid":"76349053","full_name":"fromkk/ShortLayout","owner":"fromkk","description":null,"archived":false,"fork":false,"pushed_at":"2019-07-18T22:31:00.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T04:41:23.201Z","etag":null,"topics":["autolayout","ios","swift","swift-3","swift3"],"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/fromkk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2016-12-13T10:35:04.000Z","updated_at":"2019-07-18T22:31:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe441412-3780-46e9-b763-5cdbd3ee66ea","html_url":"https://github.com/fromkk/ShortLayout","commit_stats":{"total_commits":11,"total_committers":4,"mean_commits":2.75,"dds":0.5454545454545454,"last_synced_commit":"f52515346387b291793d50a1af8fae9af0b4364d"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fromkk/ShortLayout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FShortLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FShortLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FShortLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FShortLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fromkk","download_url":"https://codeload.github.com/fromkk/ShortLayout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fromkk%2FShortLayout/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268531912,"owners_count":24265250,"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-08-03T02:00:12.545Z","response_time":2577,"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":["autolayout","ios","swift","swift-3","swift3"],"created_at":"2024-10-20T22:23:59.715Z","updated_at":"2025-08-03T11:07:38.289Z","avatar_url":"https://github.com/fromkk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://app.bitrise.io/app/083c8b8fb1cf6295/status.svg?token=bmjgt-S2Z5kn1OqbqObxHQ\u0026branch=master)](https://app.bitrise.io/app/083c8b8fb1cf6295)\n\n# Short Layout with Swift\n\nShort Layout is library of AutoLayout with syntax sugar.\n\n## Required\n\n- iOS 8 or greather\n- Xcode 7 or greather\n- Carthage\n\n---\n\n## Install\n\nAdd `github \"fromkk/ShortLayout\"` to **Cartfile** and execute `carthage update` command on your terminal in project directory.  \n\nAdd **Carthage/Build/{Platform}/ShortLayout.framework** to **Link Binary with Libralies** in you project.  \nIf you doesn't use Carthage, add **New Run Script Phase** and input `/usr/local/bin/carthage copy-frameworks` in **Build Phases** tab.  \nAdd `$(SRCROOT)/Carthage/Build/{Platform}/ShortLayout.framework` to **Input Files**.\n\n---\n\n## Usage\n\n```swift\nlet redView: UIView = UIView(frame: CGRect.zero)\nredView.backgroundColor = UIColor.red\nself.view.addSubview(redView, layouts: [\n    redView.layout.width.equal(to: self.view.layout.width).constant(0.0),\n    redView.layout.height.equal(to: self.view.layout.height).constant(0.0),\n    redView.layout.centerX.equal(to: self.view.layout.centerX).constant(0.0),\n    redView.layout.centerY.equal(to: self.view.layout.centerY).constant(0.0)\n])\n\nlet blueView: UIView = UIView(frame: CGRect.zero)\nblueView.backgroundColor = UIColor.blue\nredView.addSubview(blueView, layouts: [\n    blueView.layout.left.equal(to: redView.layout.left).constant(10.0),\n    blueView.layout.top.equal(to: redView.layout.top).constant(10.0),\n    blueView.layout.right.equal(to: redView.layout.right).constant(-10.0),\n    blueView.layout.bottom.equal(to: redView.layout.bottom).constant(-10.0),\n])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fshortlayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffromkk%2Fshortlayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffromkk%2Fshortlayout/lists"}