Docs
Tab BarsPro

Top TabsNew

A scrolling strip of top tabs over swipeable pages, its indicator tracking the swipe and the strip keeping the selected tab in view.

$npx swiftpieces add TopTabs

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 · Tab BarsiOS 17+Themed by Pro's design system
Type
TopTabs
Inside
Stretching indicator, Swipe between pages, Tab counts, Fill or scroll
Install, with a Pro license
npx swiftpieces add TopTabs
Depends on
Pro's Design System, which installs with it

A strip of tabs over a pager of your pages. The accent indicator follows the pager continuously, stretching to each tab's width, tapping a tab pages to it, and the strip scrolls to keep the selected tab in the middle. Tabs can show counts, and three or fewer share the width while more scroll.

Its SwiftUI source comes with SwiftPieces Pro: Top Tabs 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