{"id":20690519,"url":"https://github.com/octree/fluid","last_synced_at":"2025-07-16T11:34:00.290Z","repository":{"id":88101953,"uuid":"442966608","full_name":"octree/Fluid","owner":"octree","description":"Use a declarative syntax to build your user interface using UIKit like SwiftUI. 使用类似 SwiftUI 的声明式语法布局 UIKit 视图。","archived":false,"fork":false,"pushed_at":"2022-11-08T09:45:12.000Z","size":370,"stargazers_count":15,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-15T05:58:23.261Z","etag":null,"topics":["layoutengine","swiftui","uikit"],"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/octree.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,"zenodo":null}},"created_at":"2021-12-30T04:37:13.000Z","updated_at":"2024-08-24T15:20:07.000Z","dependencies_parsed_at":"2023-05-18T07:45:52.835Z","dependency_job_id":null,"html_url":"https://github.com/octree/Fluid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/octree/Fluid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FFluid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FFluid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FFluid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FFluid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octree","download_url":"https://codeload.github.com/octree/Fluid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octree%2FFluid/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265506196,"owners_count":23778679,"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":["layoutengine","swiftui","uikit"],"created_at":"2024-11-16T23:13:29.098Z","updated_at":"2025-07-16T11:34:00.279Z","avatar_url":"https://github.com/octree.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluid\n\n![](https://shields.io/static/v1?label=\u0026message=Work%20in%20Progress\u0026color=yellow)\n\n**Fluid** is powered by `ResultBuilder` and a custom layout engine. You can uses a declarative syntax to build your user interface using `UIKit` like `SwiftUI`. Your code is simpler and easier to read.\n\n\n\n## Examples\n\n![Demo](./Images/demo.png)\n\n```swift\nHStack(spacing: 16) {\n    self.imageView\n        .resizable()\n        .aspectRatio(1)\n        .frame(width: 80)\n        .overlay {\n            self.editButton\n                .resizable()\n                .frame(width: 25%, height: 25%)\n                .offset(x: -3, y: -3)\n                .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing)\n        }\n    VStack(alignment: .leading) {\n        nameLabel\n        detailLabel\n    }\n    Spacer()\n    chevronImageView\n        .resizable()\n        .frame(width: 20, height: 20)\n}\n.padding()\n.background(backgroundView)\n```\n\n\n\n## Installation\n\n### Swift Package Manager\n\n- File \u003e Swift Packages \u003e Add Package Dependency\n- Add https://github.com/octree/Fluid.git\n- Select \"Up to Next Major\" with \"1.0.0\"\n\n\n\n## License\n\n**Fluid** 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%2Foctree%2Ffluid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctree%2Ffluid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctree%2Ffluid/lists"}