Search,
Where You Want.

SwiftUI search you place where it belongs.

SearchBar 2.1.7

SearchBar 2.1.7: new DocC and visuals.

Match Your Design

Pick materials, shapes, and colors with the same modifiers you use on other SwiftUI views.

Style with the modifiers you know.

watchOS Search Done Right

Native liquid glass and a tap target sized for the wrist. Works on Series 9 and later.

Watch-sized search with native glass.

Tokens and Filters

Tags parse into typed filters. The list stays smooth on thousands of rows.

Tokens parse to typed filters at scale.

Technical Specs

Search Where You Need.

Tokens, suggestions, and platform input baked in. Drop SearchBar inside any container.

Typed Tokens

Filters parse from the field into typed values you bind to a query.

Wrist to Desktop

Same API on watchOS and macOS. Layout adapts to the platform.

SwiftUI Gaps Filled

Reaches the placements .searchable refuses.

Implementation

Add the Package.

Add the dependency, attach SearchBar to a view, bind the query string.

SearchBar is open source under the MIT License.