{"id":29881348,"url":"https://github.com/banghuazhao/swiftui-flow-layout","last_synced_at":"2026-04-20T13:32:09.997Z","repository":{"id":305411346,"uuid":"1022805503","full_name":"banghuazhao/swiftui-flow-layout","owner":"banghuazhao","description":"A lightweight and flexible SwiftUI flow layout that arranges views in a horizontal, wrapping flow—perfect for tags, chips, and more.","archived":false,"fork":false,"pushed_at":"2025-07-19T22:12:18.000Z","size":3263,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-31T12:39:37.791Z","etag":null,"topics":["chips","flow-layout","ios","layout","open-source","spm","swift","swift-package","swiftui","tags","ui","wrapping-layout"],"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/banghuazhao.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":"2025-07-19T21:41:43.000Z","updated_at":"2025-07-20T06:23:05.000Z","dependencies_parsed_at":"2025-07-21T01:00:37.410Z","dependency_job_id":null,"html_url":"https://github.com/banghuazhao/swiftui-flow-layout","commit_stats":null,"previous_names":["banghuazhao/swiftui_flow_layout","banghuazhao/swiftui-flow-layout"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/banghuazhao/swiftui-flow-layout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banghuazhao%2Fswiftui-flow-layout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banghuazhao%2Fswiftui-flow-layout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banghuazhao%2Fswiftui-flow-layout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banghuazhao%2Fswiftui-flow-layout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/banghuazhao","download_url":"https://codeload.github.com/banghuazhao/swiftui-flow-layout/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/banghuazhao%2Fswiftui-flow-layout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279110590,"owners_count":26105906,"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-15T02:00:07.814Z","response_time":56,"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":["chips","flow-layout","ios","layout","open-source","spm","swift","swift-package","swiftui","tags","ui","wrapping-layout"],"created_at":"2025-07-31T11:01:32.314Z","updated_at":"2025-10-15T20:06:34.948Z","avatar_url":"https://github.com/banghuazhao.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftUIFlowLayout\n\nA lightweight and flexible FlowLayout for SwiftUI, supporting dynamic wrapping of views in a horizontal flow, similar to tag or chip layouts. Designed for easy integration and reuse in your SwiftUI projects.\n\n## Screenshots\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"screenshots/1.png\" width=\"250\" /\u003e\n  \u003cimg src=\"screenshots/2.png\" width=\"250\" /\u003e\n\u003c/p\u003e\n\n\n## Features\n- Arranges child views in a horizontal flow, wrapping to new lines as needed\n- Customizable horizontal and vertical spacing\n- Simple API using generics and @ViewBuilder\n- Supports iOS 14+\n\n## Installation\n\n### Swift Package Manager\n\nYou can add SwiftUIFlowLayout to your project using [Swift Package Manager](https://swift.org/package-manager/):\n\n**In Xcode:**\n1. Go to **File \u003e Add Packages...**\n2. Enter the repository URL:\n   \n   ```\n   https://github.com/banghuazhao/swiftui_flow_layout\n   ```\n3. Select the version or branch you want to use (e.g., `main` or a tagged release).\n\n**Or add it directly to your `Package.swift` dependencies:**\n\n```swift\n.package(url: \"https://github.com/banghuazhao/swiftui_flow_layout.git\", branch: \"main\")\n```\n\n## Usage\n\n```swift\nimport SwiftUIFlowLayout\n\nstruct ExampleView: View {\n    let tags = [\"Swift\", \"UI\", \"Flow\", \"Layout\", \"Reusable\"]\n    var body: some View {\n        FlowLayout(items: tags) { tag in\n            Text(tag)\n                .padding(8)\n                .background(Color.blue.opacity(0.2))\n                .cornerRadius(8)\n        }\n    }\n}\n```\n\n## Usage Example\n\n```swift\nimport SwiftUI\nimport SwiftUIFlowLayout\n\nstruct ExampleView: View {\n    let tags = [\"Swift\", \"Kotlin\", \"JavaScript\", \"Python\", \"Rust\", \"Go\", \"Ruby\"]\n    \n    var body: some View {\n        FlowLayout(items: tags, horizontalSpacing: 12, verticalSpacing: 12) { tag in\n            Text(tag)\n                .padding(.horizontal, 12)\n                .padding(.vertical, 8)\n                .background(Color.blue.opacity(0.2))\n                .foregroundColor(.blue)\n                .cornerRadius(8)\n        }\n        .padding()\n    }\n}\n```\n\nYou can use `FlowLayout` in any SwiftUI view to arrange items in a flexible, wrapping layout.\n\n\n## License\nMIT ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanghuazhao%2Fswiftui-flow-layout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanghuazhao%2Fswiftui-flow-layout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanghuazhao%2Fswiftui-flow-layout/lists"}