{"id":20226115,"url":"https://github.com/augustrush/easylayout","last_synced_at":"2025-04-10T17:06:20.936Z","repository":{"id":75894447,"uuid":"50284420","full_name":"AugustRush/EasyLayout","owner":"AugustRush","description":"EasyLayout is an AutoLayout library like Masonry but more. Just for fun :)","archived":false,"fork":false,"pushed_at":"2017-01-04T06:41:09.000Z","size":1900,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T14:46:29.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/AugustRush.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":"2016-01-24T11:24:39.000Z","updated_at":"2021-09-02T00:33:57.000Z","dependencies_parsed_at":"2023-07-12T00:16:31.339Z","dependency_job_id":null,"html_url":"https://github.com/AugustRush/EasyLayout","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FEasyLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FEasyLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FEasyLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AugustRush%2FEasyLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AugustRush","download_url":"https://codeload.github.com/AugustRush/EasyLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248260458,"owners_count":21074210,"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":[],"created_at":"2024-11-14T07:16:21.872Z","updated_at":"2025-04-10T17:06:20.928Z","avatar_url":"https://github.com/AugustRush.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"#EasyLayout\n* Easy to use AutoLayout.\n\n## swift version\n* https://github.com/AugustRush/EasyLayout-Swift\n\n## Demo GIf\n\u003cimg src=\"https://github.com/AugustRush/EasyLayout/blob/develop/demo.gif\" width=\"320\"\u003e\n\n## How to use\n##### A View's left equal to B View's right with Margin 10.\u003c/br\u003e\n\n```swift\n[AView makeConstraints:^(ELConstraintsMaker *make) {\n    make.left.equalTo(BView.right).offset(10);\n}];\n\n```\n\n##### A View's centerX and centerY equal to superView's centerX and  centerY.\u003c/br\u003e\n\n```swift\n[AView makeConstraints:^(ELConstraintsMaker *make) {\n    make.centerXY.equalTo(@0);\n}];\n\n```\n##### A View's all edges equal to superView's all edges with margin 5.\u003c/br\u003e\n\n```swift\n[AView makeConstraints:^(ELConstraintsMaker *make) {\n    make.allEdges.equalTo(@5);\n}];\n```\n\n### Just like masonry do, but you can combination any constraints together like this:\n\n```swift\n  [someView remakeConstraints:^(ELConstraintsMaker *make) {\n  //left equal to _bView's right with margin 10 , top equal to \t_aView's bottom with margin 0\n    make.combination(@[ ELLeft, ELTop ])\n        .equalTo(@[ _bview.right, _aView.bottom ])\n        .offsets(@[ @10, @0 ]);\n        \n    \t//size equal to '_testView'\n    make.size.equalTo(_testView);\n  }];\n\n```\n\n## Next to do\n##### A tutorial for how to build it\n##### More convinience class (linear layout ?)\n\n## License (MIT)\n```\nCopyright (c) 2016 \n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustrush%2Feasylayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faugustrush%2Feasylayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faugustrush%2Feasylayout/lists"}