{"id":22015880,"url":"https://github.com/pircate/swiftymasonry","last_synced_at":"2025-03-23T09:14:26.972Z","repository":{"id":62456949,"uuid":"146614513","full_name":"Pircate/SwiftyMasonry","owner":"Pircate","description":"将 Masonry Swift 化，适用于 Objective-C 混编 Swift 项目。","archived":false,"fork":false,"pushed_at":"2019-03-14T03:53:50.000Z","size":97,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T14:47:34.714Z","etag":null,"topics":["autolayout","masonry","swifty"],"latest_commit_sha":null,"homepage":"","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/Pircate.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-08-29T14:44:06.000Z","updated_at":"2023-02-15T13:10:09.000Z","dependencies_parsed_at":"2022-11-02T00:17:23.784Z","dependency_job_id":null,"html_url":"https://github.com/Pircate/SwiftyMasonry","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/Pircate%2FSwiftyMasonry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FSwiftyMasonry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FSwiftyMasonry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pircate%2FSwiftyMasonry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pircate","download_url":"https://codeload.github.com/Pircate/SwiftyMasonry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078198,"owners_count":20557282,"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","masonry","swifty"],"created_at":"2024-11-30T04:29:42.658Z","updated_at":"2025-03-23T09:14:26.936Z","avatar_url":"https://github.com/Pircate.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyMasonry\n\n[![CI Status](https://img.shields.io/travis/Pircate/SwiftyMasonry.svg?style=flat)](https://travis-ci.org/Pircate/SwiftyMasonry)\n[![Version](https://img.shields.io/cocoapods/v/SwiftyMasonry.svg?style=flat)](https://cocoapods.org/pods/SwiftyMasonry)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/SwiftyMasonry.svg?style=flat)](https://cocoapods.org/pods/SwiftyMasonry)\n[![Platform](https://img.shields.io/cocoapods/p/SwiftyMasonry.svg?style=flat)](https://cocoapods.org/pods/SwiftyMasonry)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n\n* iOS 9.0\n* Swift 4.2\n\n## Installation\n\nSwiftyMasonry is available through [CocoaPods](https://cocoapods.org) or [Carthage](https://github.com/Carthage/Carthage). To install\nit, simply add the following line to your Podfile or Cartfile:\n\n### CocoaPods\n\n```ruby\npod 'SwiftyMasonry'\n```\n\n### Carthage\n\n```ruby\ngithub \"Pircate/SwiftyMasonry\"\n```\n\n## Usage\n\n```swift\nview.mas.makeConstraints {\n    $0.top.equalTo(mas.topLayoutGuide)\n    $0.left.right.equalTo(superView)\n    $0.bottom.equalTo(superView).inset(49)\n}\n\nview.mas.makeConstraints {\n    $0.edges.equalTo(superView).insets(UIEdgeInsets(top: 10, left: 20, bottom: 30, right: 40))\n}\n\nview.mas.makeConstraints {\n    $0.center.equalTo(superView)\n    $0.size.mas.equalTo(CGSize(width: 100, height: 100)) // mas.equalTo代替mas_equalTo\n}\n\nview.mas.makeConstraints {\n    $0.top.equalTo(otherView.mas.bottom).offset(20)\n    $0.left.equalTo(superView).inset(15)\n}\n```\n\n## Author\n\nPircate, swifter.dev@gmail.com\n\n## License\n\nSwiftyMasonry is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpircate%2Fswiftymasonry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpircate%2Fswiftymasonry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpircate%2Fswiftymasonry/lists"}