Post

Replies

Boosts

Views

Activity

Making the search bar using .searchable permanently visible
I recently tried out the new .searchable modifier with SwiftUI to add searchable bars to my Core Data application and found an elegant solution (I think!), described it in my blog (too long to post here): https://backtosoftwaredevelopment.blogspot.com/2021/07/using-searchable-views-with-core-data.html I was wondering how to make sure the search bar is always visible, instead of being visible when we drag the NavigationView down. The placement: parameter seems to be it, but I wasn't sure how to make it permanently visible.
3
0
4.4k
Jul ’21