Remove hardcoded color to use app accent color
This POC was requested from let groupe = Swift() Telegram channel.
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
File -> Swift Packages -> Add Package Dependency
https://github.com/cs4alhaider/SearchView
import SearchView
Then add SearchView in SwiftUI body like:
SearchView
body
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.
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.
Installation
In Xcode go to
File -> Swift Packages -> Add Package Dependency
and paste in the repo’s url:https://github.com/cs4alhaider/SearchView
Usage
Then add
SearchView
in SwiftUIbody
like:Author
Abdullah Alhaider, cs.alhaider@gmail.com
License
This project is under the MIT license. See the LICENSE file for more info.