{"id":32312354,"url":"https://github.com/onecatyu/flexkit","last_synced_at":"2025-10-23T09:55:09.265Z","repository":{"id":56911383,"uuid":"136144856","full_name":"ONECATYU/FlexKit","owner":"ONECATYU","description":"FlexBox Layout, 支持链式调用，虚拟view.","archived":false,"fork":false,"pushed_at":"2019-06-03T07:36:20.000Z","size":4455,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-23T09:55:04.173Z","etag":null,"topics":["div","flex","yoga"],"latest_commit_sha":null,"homepage":null,"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/ONECATYU.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-05T08:24:44.000Z","updated_at":"2021-07-19T02:51:54.000Z","dependencies_parsed_at":"2022-08-21T03:20:16.703Z","dependency_job_id":null,"html_url":"https://github.com/ONECATYU/FlexKit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ONECATYU/FlexKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONECATYU%2FFlexKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONECATYU%2FFlexKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONECATYU%2FFlexKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONECATYU%2FFlexKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ONECATYU","download_url":"https://codeload.github.com/ONECATYU/FlexKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ONECATYU%2FFlexKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280598938,"owners_count":26357977,"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-10-23T02:00:06.710Z","response_time":142,"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":["div","flex","yoga"],"created_at":"2025-10-23T09:55:07.931Z","updated_at":"2025-10-23T09:55:09.260Z","avatar_url":"https://github.com/ONECATYU.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FlexKit\n* 支持虚拟div,避免导致视图增多问题。  \n* 支持scrollView contentSize。设置scrollView.applyFlexFrameToContentSize = true   \n* 支持CALayer布局，UIView和CALayer混合布局。  \n* 根据node树，UIView/CALayer自动添加到父视图。在布局结束后，调用view.yoga.adjustsViewHierarchy()    \n# 使用     \n* 可配合UITableView+FDTemplateLayoutCell使用，避免手动计算高度    \n\u003cimg src='https://github.com/ONECATYU/FlexKit/blob/master/Images/screen.gif'/\u003e   \n\n```swift\ncontentView.makeFlexLayout { (make) in\n    make.padding(12)\n    make.addChild(self.titleLabel)\n    make.addChild(self.contentLabel).marginTop(10)\n    make.addChild(self.contentImgView).marginTop(10)\n    make.addChild(nil, withMakeLayout: { (make) in\n        make.flexDirection(.row).justifyContent(.spaceBetween).marginTop(10)\n        make.addChild(self.userNameLabel)\n        make.addChild(self.timeLabel)\n    })\n}\n\ncontentView.yoga.applyLayout(preservingOrigin: false)\n\n//OC中通过@100/@\"50%\",分别设置数值或者百分比\nmake.width(@100).height(@\"50%\");\n```    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecatyu%2Fflexkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecatyu%2Fflexkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecatyu%2Fflexkit/lists"}