On GitHub, exyte/ScalingHeaderScrollView has picked up 1.6k stars, Mobile, Swift. A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.
Read Article »
What's new in version 3
ScalingHeaderTabView — a new component for tab-based layouts with a shared scaling header. Each tab page scrolls independently and preserves its scroll position while the header collapses and expands in sync across all tabs.
The header closure now receives the current height and collapse progress directly, so you no longer need an external @State variable and .collapseProgress to animate the header content.
New modifiers: .scrollOffset, .headerIsClipped, .headerAlignment.
New custom petal-style loading spinner for pull-to-refresh and pull-to-load-more.
Update to version 3
minHeight and maxHeight are now initializer parameters instead of a modifier, and the header closure now receives (height: CGFloat, progress: CGFloat).
Put your header and content bodies code into a ScalingHeaderScrollView constructor.
Set the necessary modifiers, see below.
struct ContentView: View {
var body: some View {
ScalingHeaderScrollView { progress in
ZStack {
Rectangle()
.fill(.gray.opacity(0.15))
Image("header")
.opacity(1 - progress)
}
} content: {
Text("↓ Pull to refresh ↓")
.multilineTextAlignment(.center)
.padding()
}
}
}
Required parameters
header - @ViewBuilder for your header; receives progress — a CGFloat collapse value (0 = fully expanded, 1 = fully collapsed) content - @ViewBuilder for your content
Available modifiers, optional
passes current collapse progress value into binding: 0 for not collapsed at all, 1 for fully collapsed
.collapseProgress(_ progress: Binding<CGFloat>)
passes current scroll offset into binding
.scrollOffset(_ offset: Binding<CGFloat>)
allows content scroll reset, set Binding to true to trigger
.scrollToTop(resetScroll: Binding<Bool>)
when scrolling down - enable (disabled by default) header growth beyond maxHeight
.allowsHeaderGrowth()
hide scroll indicators (false by default)
.hideScrollIndicators()
controls whether the header clips its content (true by default)
.headerIsClipped(_ isClipped: Bool)
sets the alignment of content inside the header frame
.headerAlignment(_ alignment: Alignment)
allows to set up callback for ScrollView reaching the bottom
isActive - dynamically enable/disable pull-to-refresh, if disabled, loading indicator won't be displayed on pull-to-refresh perform - async closure to be performed on pull-to-refresh, after the closure is done loading indicator will be hidden automatically
allows to set up an action for pull-to-load-more; if not set up loading indicator on pull-to-load-more will never be displayed
isActive - dynamically enable/disable pull-to-load-more, if disabled, loading indicator won't be displayed on pull-to-load-more contentOffset - padding value of the content from the bottom edge when pull-to-load is active perform - async closure to be performed on pull-to-load-more, after the closure is done loading indicator will be hidden automatically
when scrolling up - switch between actual header collapse and simply moving it up (by default moving up)
.allowsHeaderCollapse()
enable/disable (disabled by default) header snap. Available modes:
.disabled - Disable header snap.
.immediately - Once you lift your finger header snaps either to min or max height automatically.
.afterFinishAccelerating - At the end of scroll view deceleration the header snaps either to min or max height automatically.
.setHeaderSnapMode(.immediately)
set custom positions for header snap; specify any amount of values in 0...1, where 0 = fully collapsed, 1 = fully expanded
Use ScalingHeaderTabView when you need a scaling header with independently scrollable tab pages. Each tab preserves its own scroll position, and the header collapses and expands in sync across all tabs.
enum Tab: String, CaseIterable {
case photos, videos
var title: String { rawValue.capitalized }
}
struct ContentView: View {
@State private var selectedTab: Tab = .photos
var body: some View {
ScalingHeaderTabView(
selection: $selectedTab,
minHeight: 100,
maxHeight: 300
) { progress in
ZStack(alignment: .bottom) {
Image("header")
.resizable()
.aspectRatio(contentMode: .fill)
.opacity(1 - progress)
tabBar
}
} pageContent: { tab in
TabContentView(tab: tab)
}
}
}
Required parameters
selection - Binding to the currently selected tab header - @ViewBuilder for your header; receives progress — a CGFloat collapse value (0 = fully expanded, 1 = fully collapsed) pageContent - @ViewBuilder producing the scroll content for each tab
PopupView - Toasts and popups library
AnchoredPopup - Anchored Popup grows "out" of a trigger view (similar to Hero animation)
Grid - The most powerful Grid container
AnimatedTabBar - A tabbar with a number of preset animations
MediaPicker - Customizable media picker
Chat - Chat UI framework with fully customizable message cells, input view, and a built-in media picker
CalendarView - Calendar view with fully customizable month/day cells
OpenAI Wrapper lib for OpenAI REST API
AnimatedGradient - Animated linear gradient
ConcentricOnboarding - Animated onboarding flow
FloatingButton - Floating button menu
ActivityIndicatorView - A number of animated loading indicators
ProgressIndicatorView - A number of animated progress indicators
FlagAndCountryCode - Phone codes and flags for every country
SVGView - SVG parser
LiquidSwipe - Liquid navigation animation
How does exyte/ScalingHeaderScrollView compare to other Mobile projects?
exyte/ScalingHeaderScrollView is tracked by TopGit in the Mobile category, with 1.6k GitHub stars and written in Swift. Browse the Mobile topic page on TopGit to compare it against similar projects by stars and activity.
Is exyte/ScalingHeaderScrollView open source?
Yes — exyte/ScalingHeaderScrollView ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/exyte/ScalingHeaderScrollView.
What else is in the Mobile space?
exyte/ScalingHeaderScrollView is tracked by TopGit under the Mobile category, alongside 7 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is exyte/ScalingHeaderScrollView?
exyte/ScalingHeaderScrollView (exyte/ScalingHeaderScrollView) is a Swift project on GitHub. From the project's own README: A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.
Where do I read more about exyte/ScalingHeaderScrollView?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/exyte/ScalingHeaderScrollView is the definitive source.
Why is exyte/ScalingHeaderScrollView categorized under Mobile?
TopGit places exyte/ScalingHeaderScrollView in the Mobile category based on its GitHub topics and description (tagged: "headerview", "ios", "scrollview"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Is ScalingHeaderScrollView worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of ScalingHeaderScrollView.