ScrollKit will use semver after 1.0.
Until then, deprecated features may be removed in any minor version.
Thanks to @gabrielribeiro, this version adds a ScrollManager
that can be used to scroll to certain parts of a scroll view.
This version also fixes a few 0.7 linting errors.
- The
ScrollManager
is a new type that can be used to scroll within a scroll view. - The
ScrollViewWithStickyHeader
can now take aScrollManager
in its initializer.
- This version fixes linting errors that were accidentally introduced in 0.7, since Xcode 16.3 isn't able to run build scripts.
This version fixes a few 0.7 bugs and behaviors.
- The
ScrollViewWithStickyHeader
now defaults the minimum header height to the top safe area, instead of the header height. - The
scrollViewHeaderWithRoundedContentMask(_:)
view extension has been renamed toscrollViewHeaderWithRoundedContentCorners(cornerRadius:)
for clarity.
- The
ScrollViewWithStickyHeader
no longer prints as it scrolls. - The
scrollViewHeaderWithRoundedContentMask(_:)
view extension didn't apply the provided corner radius. This has been fixed.
This version moves examples into a new namespace and renames some View extensions to make more sense.
- The
ScrollViewWithStickyHeader
has a newheaderStretch
parameter. - The
ScrollViewWithStickyHeader
has a newcontentCornerRadius
parameter. - The new
scrollViewContentWithHeaderOverlap(...)
view extension can apply a header overlap to a scroll view content view. - The new
scrollViewContentWithRoundedHeaderOverlap(...)
view extension can apply a rounded header overlap to a scroll view content view. - The new
scrollViewHeaderWithRoundedContentMask(...)
view extension can apply a rounded corner mask to a scroll view header.
ScrollViewWithStickyHeader
now wraps its content in aGeometryReader
to properly handle scroll offset.
ScrollViewWithStickyHeader
now honors the provided min height better, by using the geometry reader safe area insets.
- All examples have been moved into a new
Examples
namespace. - The
hideStatusBarUntilScrolled
view extension has been renamed tostatusBarHiddenUntilScrolled
. - The
withScrollOffsetTracking
view extension has been renamed toscrollViewOffsetTracking
.
This version adjusts the code to address a concurrency warning.
This version makes ScrollKit use Swift 6.
This version adds support for strict concurrency.
Thanks to murilocappucci@gmail.com, the ScrollViewWithStickyHeader
now properly passes on the axis and indicator parameters to ScrollViewWithOffsetTracking
.
This version makes more stuff public and adds support form visionOS.
This version updates to Swift 5.9, bumps deployment targets and removes CocoaPods support.
This version also moves all Spotify-related previews into a Spotify
namespace.
ScrollViewWithStickyHeader
now honors the provided min height.
ScrollViewWithOffset
has been renamed toScrollViewWithOffsetTracking
.StatusBarVisibleState
has been renamed to the correct name.
This update adds utilities for handling status bar visibility.
StatusBarVisibleState
is a new class for handling status bar visibility with shared state, for instance when usingNavigationStack
.StatusBarVisibilityUpdater
is a new view modifier to automatically update the status bar visibility depending on the current scroll state.
This minor update adds some public previews that you can use in your own apps.
SpotifyPreviewInfo
is a new struct that defines preview info for the Spotify previews.SpotifyPreviewInfo
has several pre-configured albums that you can use in the previews.SpotifyPreviewScreen
,SpotifyPreviewHeader
andSpotifyPreviewContent
are new preview views.
This is the first public release of ScrollKit.
ScrollViewWithOffset
is a scroll view that provides you with the scroll offset.ScrollViewWithStickyHeader
is a scroll view that lets you provide a sticky header view.ScrollViewHeader
is a scroll view header that will automatically stretch out as the scroll view is pulled down.ScrollViewHeaderGradient
is a convenience view to quickly define a header gradient, e.g. a dark overlay.