How the search tab looked from iOS 18 to iOS 27

⋅ 1 min read ⋅ SwiftUI iOS 27 TabView

Table of Contents

Tab(role: .search) arrived in iOS 18 (and macOS 15), with the new Tab API that replaces .tabItem. Apple introduced it in WWDC24's Elevate your tab and sidebar experience in iPadOS.

Since then, a search tab has looked different in every big iOS version. Here is the whole timeline at a glance.

The same search tab from iOS 18 to iOS 27.
The same search tab from iOS 18 to iOS 27.

iOS 18: a tab like any other

In the SDK, TabRole and .search are available from iOS 18.0, macOS 15.0, tvOS 18.0, watchOS 11.0, and visionOS 2.0.

In the old tab bar, a search tab was a normal tab, with a magnifying glass and a "Search" title.

TabView {
Tab("Home", systemImage: "house.fill") {
HomeView()
}
Tab("Library", systemImage: "books.vertical.fill") {
LibraryView()
}
Tab(role: .search) {
SearchView()
}
}
The old tab bar. The search tab sits with the others.
The old tab bar. The search tab sits with the others.

You can easily support sarunw.com by checking out this sponsor.

Sponsor sarunw.com and reach thousands of iOS developers.

iOS 26: its own circle

In iOS 26, the search tab moved out of the bar into its own circle at the trailing edge.

You don't need to change anything. The same code gives you this result.

iOS 26: the search tab is a circle at the trailing edge.
iOS 26: the search tab is a circle at the trailing edge.

You can easily support sarunw.com by checking out this sponsor.

Sponsor sarunw.com and reach thousands of iOS developers.

iOS 27: back in the bar

In iOS 27, Apple reverts the change. The search tab moves back into the tab bar and sits with the other tabs, with its "Search" title.

iOS 27: the search tab is back in the bar.
iOS 27: the search tab is back in the bar.

If you want the iOS 26 look, you can get it back with a modifier. Add .tabViewSearchActivation(.searchTabSelection), and the search tab gets its own circle again.

.searchable(text: $query)
.tabViewSearchActivation(.searchTabSelection)
iOS 27 with .searchTabSelection: the circle is back.
iOS 27 with .searchTabSelection: the circle is back.

Read more article about SwiftUI, iOS 27, TabView, or see all available topic

Enjoy the read?

If you enjoy this article, you can subscribe to the weekly newsletter.
Every Friday, you'll get a quick recap of all articles and tips posted on this site. No strings attached. Unsubscribe anytime.

Feel free to follow me on Twitter and ask your questions related to this post. Thanks for reading and see you next time.

I also make short videos and visual guides on Patreon. Some things are easier to see than to read, like how an API looks and moves on a real screen. If you like to learn that way, come and watch. Sharing the article is also greatly appreciated.

Become a patron Tweet Share
Previous
Text + Text is deprecated in SwiftUI

The + operator on SwiftUI Text is deprecated in iOS 26. Learn why Apple deprecated it and how to replace it with string interpolation.

← Home