- August 12, 2025
- Mins Read
EmptyList – List(SwiftUI) supports displaying Empty ListView for empty state
EmptyList(countries, listRowView: { country in
Text(country.name)
}, emptyListView: {
Text(“No countries”) // View displayed when the items collection isEmpty
})
// Source data for List. Source item must implement Identifiable protocol
struct Country: Identifiable {
let id: UUID
let name: String
}
// Source data items for List
let countries: [Country] = [
Country(id: UUID(), name: “Poland”),
Country(id: UUID(), name: “Germany”)
/// Others countries
]
Look here if need more details
And same requirements how to use SwiftUI. Availability:
Feel free copy-paste EmptyList
to your project or can install via CocoaPods. For installation through CocoaPods add the following line to your Podfile:
pod ‘EmptyList’, ‘~> 1.0.0’
Recognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...
Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 14.0 Installation ...
SlidingRuler is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...
SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...