目录
目录README.md

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

Installation

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

Usage

import SearchView

Then add SearchView in SwiftUI body like:

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

Author

Abdullah Alhaider, cs.alhaider@gmail.com

License

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

关于
1.4 MB
邀请码