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.
Native DocC
Quick Help and full guides inside Xcode.
SwiftUI Gaps Filled
Reaches the placements .searchable refuses.
tvOS Keyboards
System tvOS input inside any custom layout.
Capabilities
More Than a Field.
Modifiers cover suggestions, keyboards, edges, and platform input.
Implementation
Add the Package.
Add the dependency, attach SearchBar to a view, bind the query string.
GitHub / SearchBar
Track issues and shape the roadmap.
DocC Documentation
Types, modifiers, and platform notes.
Swift Package Index
Build status across every Apple platform.
SearchBar is open source under the MIT License.