how can I use the newest search tab?

Asked on 06/12/2025

1 search

To use the newest search tab in your app, you can follow these guidelines based on the latest updates presented at WWDC:

  1. SwiftUI Apps:

    • For tab-based apps where search is a destination, the search tab now appears separated from the rest of the tabs in the tab bar and morphs into the search field. You can set your tab as having a search role to get the updated appearance. This is discussed in the session Build a SwiftUI app with the new design.
  2. UIKit Apps:

    • You can integrate the search bar in the trailing edge of the navigation bar or center it in the regular width on iPad. To have the search field activate automatically when the search tab is tapped, set automaticallyActivateSearch to True on that tab. This is covered in the session Build a UIKit app with the new design.
  3. General Design Updates:

    • The design of search has been updated to be more consistent across platforms. On iPhone, the search field floats at the bottom of the screen, making it easily accessible. On iPad and Mac, it appears in the top trailing position of the toolbar. This consistency is highlighted in the Platforms State of the Union.

These updates provide a more integrated and consistent search experience across different Apple platforms, allowing you to enhance the usability of your app's search functionality.