{"id":15037929,"url":"https://github.com/bionelabs/uilayoutkit","last_synced_at":"2026-05-28T01:31:27.339Z","repository":{"id":56925065,"uuid":"258568688","full_name":"bionelabs/UILayoutKit","owner":"bionelabs","description":"Draw view easy with visual","archived":false,"fork":false,"pushed_at":"2020-04-27T14:57:37.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T00:43:20.240Z","etag":null,"topics":["autolayout","autolayout-constraints","caophuocthanh","ios","layout","onebuffer","swift","swift4","xcode"],"latest_commit_sha":null,"homepage":"https://onebuffer.com","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/bionelabs.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":"2020-04-24T16:43:53.000Z","updated_at":"2020-05-31T06:25:38.000Z","dependencies_parsed_at":"2022-08-20T22:50:23.403Z","dependency_job_id":null,"html_url":"https://github.com/bionelabs/UILayoutKit","commit_stats":null,"previous_names":["bionelabs/uilayoutkit","onebuffer/uilayoutkit"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUILayoutKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUILayoutKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUILayoutKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bionelabs%2FUILayoutKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bionelabs","download_url":"https://codeload.github.com/bionelabs/UILayoutKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243410445,"owners_count":20286395,"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","autolayout-constraints","caophuocthanh","ios","layout","onebuffer","swift","swift4","xcode"],"created_at":"2024-09-24T20:36:21.657Z","updated_at":"2025-12-26T08:59:55.177Z","avatar_url":"https://github.com/bionelabs.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UILayoutKit\n\nDraw view easy with visual\n\n## Intallation\n\n### CocoaPods\nCocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Alamofire into your Xcode project using CocoaPods, specify it in your Podfile:\n\n```swift\npod 'UISwiftLayoutKit'\n```\n\n## How to use\n\n```swift\n\nview.visual.anchor(...)\nview.visual.size(...)\nview.visual.format(...)\nview.visual.center(...)\nview.visual.equal(...)\nview.visual.stack(...)\nview.visual.square(...)\n\n```\n\n### Example 1:\n```swift\n      self.view.visual.anchor([.top, .horizontal], for: view1, padding: 0)\n      self.view.visual.size([.height], for: view1, constant: 80)\n      self.view.visual.anchor([.bottom, .horizontal], for: view2, padding: 0)\n      self.view.visual.size([.height], for: view2, constant: 50)\n      self.view.visual.anchor([.horizontal, .vertical], for: view0, padding: 100)\n```\n\n### Example 2:\n```swift\n      self.view.visual.format(\"H:|-0-[v0]-0-[v1]-0-[v2]-0-|\", for: [view0, view1, view2])\n      self.view.visual.anchor([.vertical], for: view0, padding: 0)\n      self.view.visual.anchor([.vertical], for: view1, padding: 0)\n      self.view.visual.anchor([.vertical], for: view2, padding: 0)\n      self.view.visual.equal(.width, views: [view0, view1, view2])\n```\n\n### Example 3:\n```swift\n        self.view.visual.stack(.horizontal, for: [view0, view1, view2], spacing: 16)\n        self.view.visual.anchor([.vertical], for: view0, padding: 0)\n        self.view.visual.anchor([.vertical], for: view1, padding: 0)\n        self.view.visual.anchor([.vertical], for: view2, padding: 0)\n        self.view.visual.equal(.width, views: [view0, view1, view2])\n```\n\n### Example 4:\n```swift\n        self.view.visual.stack(.vertical, for: [view0, view1, view2], spacing: 0)\n        self.view.visual.anchor([.horizontal], for: view0, padding: 0)\n        self.view.visual.anchor([.horizontal], for: view1, padding: 0)\n        self.view.visual.anchor([.horizontal], for: view2, padding: 0)\n        self.view.visual.equal(.height, views: [view0, view1, view2])\n```\n\n### Example 5:\n```swift\n        self.view.visual.stack(.vertical, for: [view0, view1, view2], spacing: 0)\n        self.view.visual.anchor([.horizontal], for: view0, padding: 0)\n        self.view.visual.anchor([.horizontal], for: view1, padding: 0)\n        self.view.visual.anchor([.horizontal], for: view2, padding: 0)\n        self.view.visual.size([.width], for: view0, constant: 64)\n        self.view.visual.size([.width], for: view2, constant: 50)\n```\n\n## Contact\n- Email: caophuocthanh@gmail.com\n- Site: https://onebuffer.com\n- Linkedin: https://www.linkedin.com/in/caophuocthanh/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionelabs%2Fuilayoutkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbionelabs%2Fuilayoutkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbionelabs%2Fuilayoutkit/lists"}