Swiftpack.co - cs4alhaider/SearchView as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Prove of concept on how to natively implement SearchView using SwiftUI API's
.package(url: "https://github.com/cs4alhaider/SearchView.git", from: "1.0.0")

Searchable SwiftUI View

SPM, Prove of concept on how to natively implement SearchView using SwiftUI API's

This POC was requested from let groupe = Swift() Telegram channel.

Example Countery search app


It requires iOS 13 and Xcode 11!

In Xcode go to File -> Swift Packages -> Add Package Dependency and paste in the repo's url: https://github.com/cs4alhaider/SearchView


import SearchView

Then add SearchView in SwiftUI body like:

var body: some View {
    NavigationView {
        SearchView(searchText: $searchText) {
            // Your views ..


Abdullah Alhaider, cs.alhaider@gmail.com


This project is under the MIT license. See the LICENSE file for more info.


Stars: 15
Last commit: 22 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

SPM support
1 year ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics