'Can .searchable be used to search by property of object in list (swiftUI)

I have a SwiftUI list which consists of objects instead of plain text. Is there a way to use .searchable to add a search bar that will filter by an objects property, such as its title, or if not, an alternate way to add a search bar to this list? Thanks.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source