How can I use the new search stuff?

Asked on 2025-06-29

@wwdc25

1 search

To use the new search features introduced at WWDC, you can take advantage of several updates across different platforms and tools:

  1. SwiftUI Apps:

    • In SwiftUI, you can use the searchable modifier to integrate search functionality into your app. This modifier can be applied to a NavigationSplitView to make search available across the entire view. On iPhone, the search field appears at the bottom of the screen for easy access, while on iPad and Mac, it appears in the top trailing position of the toolbar. For multi-tab apps, you can set a search role on one of your tabs to create a dedicated search page. Build a SwiftUI app with the new design
  2. Xcode:

    • Xcode introduces a new "Multiple Word Search" mode, which uses search engine techniques to find clusters of words in your project. This feature allows you to enter a set of words, and Xcode will find clusters of these words in proximity to each other across your documents, sorting them by relevance. What’s new in Xcode
  3. UIKit Apps:

    • For UIKit apps, you can integrate search into the navigation bar or as a dedicated tab. On iPad, you can center the search bar using the integrated centered placement. The search bar can automatically activate when the search tab is tapped. Build a UIKit app with the new design
  4. App Intents:

    • You can implement image search by conforming to the IntentValueQuery protocol, allowing users to perform searches directly from a camera capture or screenshot. This feature is new in iOS 26 and can show your app's search results in Spotlight. Explore new advances in App Intents

These updates provide a more consistent and flexible search experience across Apple's platforms, making it easier for users to find content within your apps.