AdelaideSky

Contextual navigation titles for SwiftUI

95
1
100% credibility
Found Feb 23, 2026 at 86 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Swift
AI Summary

A SwiftUI package providing contextual navigation titles and subtitles that dynamically update and animate based on scroll position in scrollable views.

How It Works

1
📱 Discover Afloat

While building an app with scrollable lists like a recipe book, you find this handy tool to make navigation titles smarter and more engaging.

2
âž• Add it to your app

Simply include this lightweight tool into your app project so it can start working its magic right away.

3
✨ Tag your section headers

Mark the titles and subtitles on your list sections, like 'Breakfast' or '5 recipes', so they know when to appear up top.

4
🔗 Turn on contextual navigation

Apply a simple switch to your main scrollable area, optionally setting a default title for the very top.

5
📜 Scroll and see the change

As you swipe through sections, the navigation bar smoothly updates to show the current section's title and details, feeling just like a native app.

🎉 Delightful app experience

Your app now has polished, dynamic navigation that keeps users oriented effortlessly, making long lists a joy to explore.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 86 to 95 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is Afloat?

Afloat delivers contextual navigation titles and subtitles for SwiftUI that shift dynamically as users scroll through lists or sections, giving the nav bar real-time context like "Breakfast (4 recipes)" in a recipe app. It replaces static titles with scroll-aware ones that animate smoothly, matching native iOS and macOS behaviors for better contextual navigation UI/UX. Works on iOS 26+, macOS 26+ (afloat mac), and visionOS via simple drop-in modifiers—no extra deps needed.

Why is it gaining traction?

Stands out with zero-config setup: tag section headers with `.contextual` styles, add one modifier to your ScrollView, and titles swap on scroll with customizable transitions like opacity or interpolation. Cross-platform support and native animations make it a quick win over manual scroll listeners or custom bars, especially for contextual navigation examples in apps like feeds or catalogs. Lightweight footprint hooks devs seeking polished contextual navigation systems without boilerplate.

Who should use this?

SwiftUI devs building sectioned lists in apps like recipe books, news feeds, or e-commerce catalogs where users scroll deep—think iOS recipe apps showing category counts or macOS file explorers with folder contexts. Ideal for teams targeting modern Apple platforms wanting contextual navigation menus that feel native, avoiding hacks for scroll-position titles.

Verdict

Grab it for prototypes or simple lists—83 stars and solid tests/docs show promise, but 1.0% credibility score flags low adoption and future iOS 26+ reqs mean it's early-stage. Test in a sandbox first; pairs well with contextual chunking needs but watch for large-title support.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.