{"id":16892376,"url":"https://github.com/lightsprint09/sourcing","last_synced_at":"2025-03-22T08:31:20.657Z","repository":{"id":45600962,"uuid":"59855079","full_name":"lightsprint09/Sourcing","owner":"lightsprint09","description":"Abstracts TableView \u0026 CollectionView DataSources","archived":false,"fork":false,"pushed_at":"2025-01-31T06:31:06.000Z","size":1231,"stargazers_count":17,"open_issues_count":5,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-13T18:03:35.750Z","etag":null,"topics":["carthage","custom-dataprovider","dataprovider","datasource","sourcing","swift","tableview"],"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/lightsprint09.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-05-27T18:26:39.000Z","updated_at":"2023-04-20T20:36:00.000Z","dependencies_parsed_at":"2024-02-06T15:15:15.317Z","dependency_job_id":"f02276d7-a84e-4ccb-a054-b86e453ed433","html_url":"https://github.com/lightsprint09/Sourcing","commit_stats":{"total_commits":399,"total_committers":8,"mean_commits":49.875,"dds":"0.32330827067669177","last_synced_commit":"354f3109114c693fba1e63c997505e4d181e5500"},"previous_names":[],"tags_count":27,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsprint09%2FSourcing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsprint09%2FSourcing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsprint09%2FSourcing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsprint09%2FSourcing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsprint09","download_url":"https://codeload.github.com/lightsprint09/Sourcing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931482,"owners_count":20534008,"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":["carthage","custom-dataprovider","dataprovider","datasource","sourcing","swift","tableview"],"created_at":"2024-10-13T17:11:09.956Z","updated_at":"2025-03-22T08:31:20.275Z","avatar_url":"https://github.com/lightsprint09.png","language":"Swift","readme":"[![Build Status](https://travis-ci.org/lightsprint09/Sourcing.svg?branch=master)](https://travis-ci.org/lightsprint09/Sourcing)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![codecov](https://codecov.io/gh/lightsprint09/Sourcing/branch/master/graph/badge.svg)](https://codecov.io/gh/lightsprint09/Sourcing)\n\n# Sourcing\n\nTypesafe and flexible abstraction for TableView \u0026amp; CollectionView DataSources written in Swift. It helps you to seperate concerns and keep ViewControllers light. By operating on data providers replacing your view implementation is easy at any time.\n\n## Documentation\n\nRead the [docs](https://lightsprint09.github.io/Sourcing). Generated with [jazzy](https://github.com/realm/jazzy). Hosted by [GitHub Pages](https://pages.github.com).\n\n\n## Quick Demo\nSetting up your Cell by implementing `ConfigurableCell` \u0026 `ReuseIdentifierProviding`.\n```swift\nimport Sourcing\n\nclass LabelCell: UITableViewCell, ConfigurableCell {\n\n   func configure(with label: String) {\n      textLabel?.text = label\n   }\n   \n}\n\n//If the reuse identifier is the same as the class name.\nextension LabelCell: ReuseIdentifierProviding {}\n\nlet labelCellConfiguration = CellConfiguration\u003cLabelCell\u003e()\nlet labelsToDispay = ArrayDataProvider(sections: [[\"Row 1\", \"Row 2\"], [\"Row 1\", \"Row 2\"]])\nlet dataSource = TableViewDataSource(dataProvider: labelsToDispay, cellConfiguration: labelCellConfiguration)\n\ntableView.dataSource = dataSource\n\n//Add this to sync data changes to the table view.\nlet changeAnimator = TableViewChangeAnimator(tableView: tableView, dataProvider: labelsToDispay)\n```\n\n## Installation\n\n### Swift Package Manager\n\n[SPM](https://swift.org/package-manager/) is integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.\n\nSpecify the following in your `Package.swift`:\n\n```swift\n.package(url: \"https://github.com/lightsprint09/Sourcing\", from: \"4.1.0\"),\n```\n\n## Contributing\nSee CONTRIBUTING for details.\n\n## Contact\nLukas Schmidt ([Mail](mailto:lukas.la.schmidt@deutschebahn.com), [@lightsprint09](https://twitter.com/lightsprint09))\n\n## License\nSourcing is released under the MIT license. See LICENSE for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsprint09%2Fsourcing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsprint09%2Fsourcing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsprint09%2Fsourcing/lists"}