how to add the search tab in tabbar
Asked on 06/12/2025
•@wwdc251 search
To add a search tab in the tab bar of your app, you can follow the guidance provided in the WWDC sessions:
-
UIKit: In the session "Build a UIKit app with the new design," it is mentioned that you can include a distinct tab for search in the tab bar. When the search tab is tapped, the search button expands into a search field, and the other buttons collapse. To have the search field activate automatically when the search tab is tapped, set
automaticallyActivateSearch
toTrue
on that tab. This approach is ideal for making search suggestions available and providing a dedicated search experience. You can find more details in the Build a UIKit app with the new design session. -
SwiftUI: In the session "Build a SwiftUI app with the new design," it is suggested to set a search role on one of your tabs and place a
searchable
modifier on your tab view. When someone selects this tab, a search field takes the place of the tab bar, and the content of the tab is shown. This pattern is used across platforms and provides flexibility and control over the search experience. More information can be found in the Build a SwiftUI app with the new design session.
These sessions provide comprehensive guidance on integrating a search tab into your app's tab bar, whether you are using UIKit or SwiftUI.

Build a UIKit app with the new design
Update your UIKit app to take full advantage of the new design system. We’ll dive into key changes to tab views, split views, bars, presentations, search, and controls, and show you how to use Liquid Glass in your custom UI. To get the most out of this video, we recommend first watching “Get to know the new design system” for general design guidance.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.

Build a SwiftUI app with the new design
Explore the ways Liquid Glass transforms the look and feel of your app. Discover how this stunning new material enhances toolbars, controls, and app structures across platforms, providing delightful interactions and seamlessly integrating your app with the system. Learn how to adopt new APIs that can help you make the most of Liquid Glass.