iOS and iPadOS 26 have introduced several new APIs for updating the visual style and placement of the search bar. In this article, we will explore how to utilize these improvements to implement a search interface in your application.

There are two common search patterns in applications: toolbar search and tab bar search. We will discuss each of these patterns, highlighting their differences and providing examples of how to implement them in SwiftUI.

### Toolbar Search

Toolbar search is a common pattern where the search bar is placed on the toolbar of a view. This pattern is ideal for applications that require a quick and easy search functionality.

To implement toolbar search in SwiftUI, you can use the `ToolbarItem` view and the `searchBar` modifier. Here is an example of how to implement toolbar search:

```swift
import SwiftUI

struct ContentView: View {
@State private var searchText =