{"id":21376490,"url":"https://github.com/fluidgroup/swift-dynamic-list","last_synced_at":"2025-07-13T10:31:03.680Z","repository":{"id":174042847,"uuid":"651447626","full_name":"FluidGroup/swift-dynamic-list","owner":"FluidGroup","description":"Convenient component displaying elements in UICollectionView - Supports SwiftUI-based cell","archived":false,"fork":false,"pushed_at":"2025-06-17T22:51:14.000Z","size":15612,"stargazers_count":19,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-17T23:33:09.588Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FluidGroup.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-06-09T08:58:37.000Z","updated_at":"2025-06-17T22:51:17.000Z","dependencies_parsed_at":"2024-01-08T05:24:46.088Z","dependency_job_id":"e16d31d4-9a85-4c88-b21e-4bebe6aafeee","html_url":"https://github.com/FluidGroup/swift-dynamic-list","commit_stats":null,"previous_names":["fluidgroup/swift-dynamic-list"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/FluidGroup/swift-dynamic-list","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-dynamic-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-dynamic-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-dynamic-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-dynamic-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FluidGroup","download_url":"https://codeload.github.com/FluidGroup/swift-dynamic-list/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FluidGroup%2Fswift-dynamic-list/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265128175,"owners_count":23715621,"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":[],"created_at":"2024-11-22T09:15:54.851Z","updated_at":"2025-07-13T10:31:03.371Z","avatar_url":"https://github.com/FluidGroup.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-dynamic-list\nConvenient component displaying elements in UICollectionView - Supports SwiftUI-based cell\n\n## Requirements\n\n- iOS 14 +\n- iPhone Platform\n\n## Instructions\n\n\u003e Works in UIKit\n\n```swift\nlet list = DynamicListView\u003cSection, Element\u003e.init(...)\n```\n\nSetting how displays cells\n    \n```swift\nlist.setUp(\n  cellProvider: { context in\n    let data = context.data\n    // return cell\n  }\n)\n```\n\nthe context in cellProvider closure supports making SwiftUI based cells.\n\n```swift\nlet cell = context.cell { state in\n  Text(\"Hello\")\n}\nreturn cell\n```\n\nsetting how handles the events of selected or deselected\n\n```swift\nlist.setSelectionHandler { action in\n  switch action {\n  case .didSelect(let item):\n    print(\"Selected \\(String(describing: item))\")\n  case .didDeselect(let item):\n    print(\"Deselected \\(String(describing: item))\")\n  }\n}\n```\n\nbasic configuration is completed.  \nthen set the content that displays.\n\n```swift\nlist.setContents(contents, inSection: targetSection)\n```\n\n## Additional functions\n\nit supports a trigger event when the scrolling will be reaching the tail.  \nthat will be good timing to trigger loading additional data.\n\n```swift\nlist.setIncrementalContentLoader { \n  await loadMoreData()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidgroup%2Fswift-dynamic-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluidgroup%2Fswift-dynamic-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluidgroup%2Fswift-dynamic-list/lists"}