Skip to content

Commit

Permalink
Show search bar always
Browse files Browse the repository at this point in the history
  • Loading branch information
uhooi committed Feb 4, 2024
1 parent 9892139 commit 3259bc6
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ package struct SakatsuListScreen: View {
}
)
.navigationTitle(String(localized: "Sakatsu list", bundle: .module))
.searchable(text: .init(get: {
viewModel.uiState.searchText
}, set: { newValue in
viewModel.send(.onSearchTextChange(searchText: newValue))
}))
.searchable(
text: .init(get: {
viewModel.uiState.searchText
}, set: { newValue in
viewModel.send(.onSearchTextChange(searchText: newValue))
}),
placement: .navigationBarDrawer(displayMode: .always)
)
.sakatsuListScreenToolbar(
editMode: $editMode,
colorScheme: colorScheme,
Expand Down

0 comments on commit 3259bc6

Please sign in to comment.