{"repo":"exyte/ScalingHeaderScrollView","free":true,"listed":false,"github":"https://github.com/exyte/ScalingHeaderScrollView","clone":"git clone https://github.com/exyte/ScalingHeaderScrollView.git","description":"A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI.","language":"Swift","stars":1534,"topics":["swift","swiftui","ios","swiftui-components","headerview","sticky-headers","scrollview"],"license":"MIT","category":"mobile-apps","readme_excerpt":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Scaling Header Scroll View A scroll view with a sticky header which shrinks as you scroll. Written with SwiftUI. Read Article » Usage 1. Put your header and content bodies code into a ScalingHeaderScrollView constructor. 2. Set the necessary modifiers, see below. TabView won't work Please note that ScalingScrollview is just a ScrollView under the hood, so it works very similar to it. If content's height changes between tabs inside the scroll view, there is no way to keep scroll position nice and stable. Usually when using a TabView , you put separate ScrollView s on every tab, not the other way around. And if you were to put a TabView inside a ScrollView , it wouldn't work as you expect, and neither will putting it inside a ScalingScrollview . Moreover, TabView gives almost no control over itself (getting/setting its current position, getting tab's content height, etc.), so there is no way to manually mess with its scrollOffset , which is what this library relies heavily upon. Required parameters header - @ViewBuilder for your header content - @ViewBuilder for your content Available modifiers, optional passes current collapse progress value into progress binding: 0 for not collapsed at all, 1 - for fully collapsed allows to set up callback for ScrollView reaching the bottom allows to set up an action for pull-to-refresh; if not set up loading indicator on pull-to-refresh will never be displayed isActive - dynamically enable/disable pull-to-refre","default_branch":null,"files":null,"tree":[],"storefront":"/r/exyte","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/exyte/ScalingHeaderScrollView/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}