Skip to content

Releases: jaywcjlove/swiftui-searchfield

v2.0.0

10 Oct 18:09
Compare
Choose a tag to compare

Upgrade v1 to v2

import SearchField

struct ContentView: View {
    @State private var searchText = ""
    var body: some View {
-        SearchField(searchText, textFieldChanged: { value in
+        SearchField(searchText: $searchText, placeholder: "Search...") { text in
-            print("value\(value)")
-            searchText = value
+            print("Search text changed to: \(text)")
+        })
-        }
        Text(searchText)
    }
}
import SwiftUI
import SearchField

struct ContentView: View {
    @State private var searchText = ""

    var body: some View {
        SearchField(searchText: $searchText, placeholder: "Search...", searchField:  { text in
            print("Search text changed to: \(text)")
        })
    }
}

v1.0.3

24 Mar 18:17
Compare
Choose a tag to compare
released v1.0.3

v1.0.2

10 Oct 07:50
Compare
Choose a tag to compare
released v1.0.2

v1.0.1

10 Oct 04:34
Compare
Choose a tag to compare
released v1.0.1

v1.0.0

10 Oct 03:55
Compare
Choose a tag to compare
released v1.0.0