Use search field style from Compound. (#839)

This commit is contained in:
Doug
2023-04-28 11:59:40 +01:00
committed by GitHub
parent c96ccd0f26
commit 18766d5852
10 changed files with 16 additions and 114 deletions
@@ -14,6 +14,7 @@
// limitations under the License.
//
import Compound
import SwiftUI
struct EmojiPickerScreen: View {
@@ -45,7 +46,7 @@ struct EmojiPickerScreen: View {
.navigationBarTitleDisplayMode(.inline)
.toolbar { toolbar }
.searchable(text: $searchString)
.searchableStyle(.list)
.compoundSearchField()
.onChange(of: searchString) { _ in
context.send(viewAction: .search(searchString: searchString))
}