Docs
Lists and FeedsPro

Search PanelNew

The body of a search screen: recent and suggested searches, live suggestions with the match highlighted, and results by scope.

$npx swiftpieces add SearchPanel

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProPattern · Lists and FeedsiOS 17+Themed by Pro's design system
Type
SearchPanel
Inside
Recent searches, Suggested chips, Live suggestions, Scoped results
Install, with a Pro license
npx swiftpieces add SearchPanel
Depends on
Pro's Design System, which installs with it

Drop it under a .searchable field. Before typing it shows recent searches with remove and Clear all and suggested searches as chips; while typing it asks your closure for debounced suggestions with the typed text highlighted; after a search it shows scope chips with counts and a card of results per scope, with loading, failed and no-results states built in.

Its SwiftUI source comes with SwiftPieces Pro: Search Panel in the Pro library.

All patterns →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro