{"id":1311,"url":"https://github.com/daskioff/RKAutoLayout","last_synced_at":"2025-08-02T04:30:51.011Z","repository":{"id":62452026,"uuid":"136843136","full_name":"DaskiOFF/RKAutoLayout","owner":"DaskiOFF","description":"Easy Auto Layout","archived":false,"fork":false,"pushed_at":"2019-03-02T11:47:27.000Z","size":653,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-29T17:20:33.407Z","etag":null,"topics":["autolayout","autolayout-constraints","ios","swift"],"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/DaskiOFF.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":"2018-06-10T20:37:56.000Z","updated_at":"2023-04-16T15:19:30.000Z","dependencies_parsed_at":"2022-11-01T23:45:35.374Z","dependency_job_id":null,"html_url":"https://github.com/DaskiOFF/RKAutoLayout","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaskiOFF%2FRKAutoLayout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaskiOFF%2FRKAutoLayout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaskiOFF%2FRKAutoLayout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DaskiOFF%2FRKAutoLayout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DaskiOFF","download_url":"https://codeload.github.com/DaskiOFF/RKAutoLayout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228438757,"owners_count":17920013,"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","ios","swift"],"created_at":"2024-01-05T20:15:43.533Z","updated_at":"2024-12-06T08:30:42.034Z","avatar_url":"https://github.com/DaskiOFF.png","language":"Swift","funding_links":[],"categories":["Layout"],"sub_categories":["Other Hardware"],"readme":"# RKAutoLayout\n\n[![CI Status](https://img.shields.io/travis/DaskiOFF/RKAutoLayout.svg?style=flat)](https://travis-ci.org/DaskiOFF/RKAutoLayout)\n[![Cocoapods compatible](https://img.shields.io/badge/Cocoapods-compatible-4BC51D.svg?style=flat)](https://cocoapods.org/)\n[![codecov](https://codecov.io/gh/daskioff/RKAutoLayout/branch/master/graph/badge.svg)](https://codecov.io/gh/daskioff/RKAutoLayout)\n[![docs](docs/badge.svg)](https://daskioff.github.io/RKAutoLayout/)\n[![Version](https://img.shields.io/cocoapods/v/RKAutoLayout.svg?style=flat)](https://cocoapods.org/pods/RKAutoLayout)\n[![Platform](https://img.shields.io/cocoapods/p/RKAutoLayout.svg?style=flat)](https://cocoapods.org/pods/RKAutoLayout)\n[![Swift Version](https://img.shields.io/badge/Swift-4.1-brightgreen.svg?style=flat)](https://developer.apple.com/swift)\n[![License](https://img.shields.io/cocoapods/l/RKAutoLayout.svg?style=flat)](https://cocoapods.org/pods/RKAutoLayout)\n\nEasy AutoLayout\n\n## TL;DR\n\n```swift\nlet view1: UIView = UIView()\nlet view2: UIView = UIView()\n\nview1.addSubview(view2)\n\n/// Add all\nview1.rk_alAdd(\n    size: [.width(view2), .height(100)], \n    center: [.centerX()], \n    edge: [.top(10), .bottom(view2, offset: -34)], isActive: false)\nview1.rk_alAdd(size: [.height(100)], edge: [.top(min: 10), .bottom(view2, offset: -34)], isActive: false)\nview1.rk_alAdd(center: [.centerX()], edge: [.top(10), .bottom(max: view2.topAnchor, offset: -34)])\n\n/// Edges\nview1.rk_alEdgeSuperViewBounds()\nview1.rk_alEdge(.top(200))\nview1.rk_alEdge(.top(bottomAnchor, offset: -43))\nview1.rk_alEdge(.top(0), .left(10), isActive: false)\n\n/// Size\nview1.rk_alSize(.width(50), .height(view2, multiplier: 3))\nview1.rk_alSize(.width(view2.heightAnchor, priority: .low), .height(view2))\nview1.rk_alSize(.width(200), .height(min: 60), .height(max: 220))\n\n/// Center\nview1.rk_alCenterSuperView()\nview1.rk_alCenter(.centerX(100), .centerY(300))\nview1.rk_alCenter(.centerX(), .centerY(view2.topAnchor))\nview1.rk_alCenter(values: RKConstraintCenter.center(view2, offsetX: -100, offsetY: -100))\n\n/// Baseline\nview1.rk_alBaseline(.firstBaseline(100), .lastBaseline(300))\n```\n\n## Requirements\n\n- iOS 9.0 and above\n- Swift 4.1\n\n## Documentations\n\nFull documentation for the latest release is available [here](https://daskioff.github.io/RKAutoLayout/)\n\n## Installation\n\nRKAutoLayout is available through [CocoaPods](https://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'RKAutoLayout', '~\u003e 0.2'\n```\n\n## Author\n\nDaskiOFF, waydeveloper@gmail.com\n\n## License\n\nRKAutoLayout is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n\n## [Dependencies](https://ios-factor.com/dependencies)\nПоследний раз проект собирался с версией **Xcode** указанной в файле ```.xcode-version``` ([Подробнее](https://github.com/fastlane/ci/blob/master/docs/xcode-version.md))\n\nПоследний раз проект собирался с версией **Swift** указанной в файле ```.swift-version```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaskioff%2FRKAutoLayout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaskioff%2FRKAutoLayout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaskioff%2FRKAutoLayout/lists"}