I want to achieve something like this in my SwiftUI project:
I am looking to add a custom button next to the search bar, but I am unable to find relevant information online. Is it possible to achieve this without using custom code, or do I need to use a custom search bar? Thank you in advance for your help.

You could try this simple all SwiftUI approach, replacing the
.searchable(...)with a.toolbarcontaining aTextFieldand aButtonin aHStack.For example: