{"id":13778334,"url":"https://github.com/Toni77777/EmptyList","last_synced_at":"2025-05-11T11:35:27.098Z","repository":{"id":56909986,"uuid":"278707734","full_name":"Toni77777/EmptyList","owner":"Toni77777","description":"EmptyList - List(SwiftUI) supports displaying Empty ListView for empty state","archived":false,"fork":false,"pushed_at":"2020-07-13T11:58:38.000Z","size":834,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T12:49:05.568Z","etag":null,"topics":["apple","cocoapod","ios","list","macos","swift","swift5","swiftui","xcode","xcode11"],"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/Toni77777.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":"2020-07-10T18:37:40.000Z","updated_at":"2025-02-21T19:32:16.000Z","dependencies_parsed_at":"2022-08-20T20:20:45.999Z","dependency_job_id":null,"html_url":"https://github.com/Toni77777/EmptyList","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toni77777%2FEmptyList","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toni77777%2FEmptyList/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toni77777%2FEmptyList/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Toni77777%2FEmptyList/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Toni77777","download_url":"https://codeload.github.com/Toni77777/EmptyList/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253560188,"owners_count":21927743,"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":["apple","cocoapod","ios","list","macos","swift","swift5","swiftui","xcode","xcode11"],"created_at":"2024-08-03T18:00:53.097Z","updated_at":"2025-05-11T11:35:26.785Z","avatar_url":"https://github.com/Toni77777.png","language":"Swift","readme":"# EmptyList\n\n[![Swift 5](https://img.shields.io/badge/swift-5-orange)](https://swift.org/)\n[![Platforms](https://img.shields.io/cocoapods/p/EmptyList)](https://cocoapods.org/pods/EmptyList)\n[![Version](https://img.shields.io/cocoapods/v/EmptyList.svg?style=flat)](https://cocoapods.org/pods/EmptyList)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nEmptyList - List(SwiftUI) supports displaying Empty ListView for empty state\n\n## Usage\n\n```swift\nEmptyList(countries, listRowView: { country in\n    Text(country.name)\n}, emptyListView: {\n    Text(\"No countries\") // View displayed when the items collection isEmpty\n})\n\n// Source data for List. Source item must implement Identifiable protocol\nstruct Country: Identifiable {\n    let id: UUID\n    let name: String\n}\n\n// Source data items for List \nlet countries: [Country] = [\n    Country(id: UUID(), name: \"Poland\"),\n    Country(id: UUID(), name: \"Germany\")\n    /// Others countries \n]\n```\n\n\u003cdiv align=\"left\"\u003e\u003cimg src=\"Assets/countries_iphone11.png\" height=\"482px\"\u003e\u003c/div\u003e\n\u003cdiv align=\"left\"\u003e\u003cimg src=\"Assets/no_countries_iphone11.png\" height=\"482px\"\u003e\u003c/div\u003e\n\n## Example\n\nLook [here](https://github.com/Toni77777/EmptyList/tree/master/Demo) if need more details\n\n## Requirements\n\n- Xcode 11+\n- Swift 5.2+\n\nAnd same requirements how to use [SwiftUI](https://developer.apple.com/documentation/swiftui). Availability:\n- iOS 13.0+\n- macOS 10.15+\n- Mac Catalyst 13.0+\n- tvOS 13.0+\n- watchOS 6.0+\n\n## Installation\n\nFeel free copy-paste ```EmptyList``` to your project or can install via [CocoaPods](https://cocoapods.org).\nFor installation through [CocoaPods](https://cocoapods.org) add the following line to your Podfile:\n\n```ruby\npod 'EmptyList', '~\u003e 1.0.0'\n```\n\n## License\n\nEmptyList is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["List"],"sub_categories":["Content"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToni77777%2FEmptyList","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FToni77777%2FEmptyList","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FToni77777%2FEmptyList/lists"}