Reputation: 33
How to perform a searchable in a parent view ,where it can return the elements from a child view.
Attached the screenshots of official iOS 18 Settings screen for reference:
I have tried to implement the .searchable modifier in my parent view to filter the resultant elements based on the user query.The current parent view mentioned here is the settings view of my app. There has been no issue until this part.
However when I try to include the elements present in the child views, I am not able to brainstorm how to do the same !
Upvotes: 0
Views: 62