onSubmit modifier not triggered when placement is automatic in searchable modifier.

We have used searchable modifier with automatic or toolbar placement. When user tap on keyboard's search button it doesn't trigger onSubmit modifier.

However if placement is navigationBarDrawer it is working fine.

.searchable(text: $searchText, placement: .automatic, prompt: "Search")
.onSubmit(of: .search) {
    print("Search submitted")
}

You should probably raise this as a bug in the usual way. It won't really get progressed if it's only posted in these Developer Forums.

You need to raise each issue you find separately at https://feedbackassistant.apple.com/ You can post the FB numbers here if you want, so that others can link to them.

When raising a bug it's important to mention which version of which operating system you've found the issue in, e.g. iOS 18.5, iOS 26 beta 3, or visionOS 26 beta 3 etc.

onSubmit modifier not triggered when placement is automatic in searchable modifier.
 
 
Q