Greeting HeaderNew
The top of a home tab: the date, a bell with its unread count, the avatar, a greeting by time of day and search, folding into a compact bar.
Pro pattern · recorded from Pro
The SwiftUI source comes with SwiftPieces Pro.
Every Pro pattern installs with one command once your license is signed in, and re-skins with Pro's design system.
Open it in the Pro library ↗Needs a SwiftPieces Pro license: npx swiftpieces login first.
- Type
- GreetingHeader
- Inside
- Time-of-day greeting, Unread badge, Avatar with initials, Folds on scroll
- Install, with a Pro license
- npx swiftpieces add GreetingHeader
- Depends on
- Pro's Design System, which installs with it
A home tab's header in place of a plain large title. Today's date, the notifications bell with an unread badge and the avatar sit on one row over a greeting for the time of day and a search field. As content scrolls the greeting and search fold away into a compact bar, driven by the scroll offset on iOS 18 or by any value you pass.
Its SwiftUI source comes with SwiftPieces Pro: Greeting Header in the Pro library.