Swiftpack.co - Package - Ash-Bash/SearchKit

SearchKit

Example NavigationView { ZStack(alignment: .top) { List(self.listData, id: \.self) { item in Text(item) } .offset(CGSize(width: 0, height: 48)) SearchView(self.$searchText) { List { Section(header: Text("Search Results")) { ForEach(self.listData.filter({ searchText.isEmpty ? true : $0.contains(searchText) }), id: \.self) { item in Text(item) } } } } } .navigationTitle(Text("Search Test")) } .navigationViewStyle(StackNavigationViewStyle())

Github

link
Stars: 0

Dependencies

Used By

Total: 0