Skip to content

Commit

Permalink
Merge pull request #218 from uhooi/feature/show_search_bar_always
Browse files Browse the repository at this point in the history
Show search bar always
  • Loading branch information
uhooi authored Feb 4, 2024
2 parents 9892139 + 3259bc6 commit e289c9f
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 e289c9f

Please sign in to comment.