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.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
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.