{"id":25629713,"url":"https://github.com/danielsaidi/ScrollKit","last_synced_at":"2025-02-22T19:18:14.559Z","repository":{"id":65692287,"uuid":"597412276","full_name":"danielsaidi/ScrollKit","owner":"danielsaidi","description":"ScrollKit is a SwiftUI SDK that adds powerful scroll features, like offset tracking and a header view that stretches \u0026 transforms as you pull down, and sticks to the top when you scroll.","archived":false,"fork":false,"pushed_at":"2025-02-17T17:02:10.000Z","size":13774,"stargazers_count":751,"open_issues_count":5,"forks_count":27,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-22T05:08:23.823Z","etag":null,"topics":["ios","macos","scrollview","sticky-header","swiftui","tvos","visionos","watchos"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielsaidi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["danielsaidi"]}},"created_at":"2023-02-04T13:24:58.000Z","updated_at":"2025-02-19T18:26:25.000Z","dependencies_parsed_at":"2024-03-13T22:30:46.110Z","dependency_job_id":"0dc62e7f-9dc9-4542-916a-4ab5afeaa621","html_url":"https://github.com/danielsaidi/ScrollKit","commit_stats":{"total_commits":84,"total_committers":3,"mean_commits":28.0,"dds":0.04761904761904767,"last_synced_commit":"d1642f705834ca7718458885d838671c51ca2e17"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FScrollKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FScrollKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FScrollKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielsaidi%2FScrollKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielsaidi","download_url":"https://codeload.github.com/danielsaidi/ScrollKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240127105,"owners_count":19751941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ios","macos","scrollview","sticky-header","swiftui","tvos","visionos","watchos"],"created_at":"2025-02-22T19:17:37.050Z","updated_at":"2025-02-22T19:18:14.549Z","avatar_url":"https://github.com/danielsaidi.png","language":"Swift","readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src =\"Resources/Logo_Rounded.png\" alt=\"ScrollKit Logo\" title=\"ScrollKit\" /\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/danielsaidi/ScrollKit?color=%2300550\u0026sort=semver\" alt=\"Version\" title=\"Version\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/swift-6.0-orange.svg\" alt=\"Swift 6.0\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/platform-SwiftUI-blue.svg\" alt=\"Swift UI\" title=\"SwiftUI\" /\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/danielsaidi/ScrollKit\" alt=\"MIT License\" title=\"MIT License\" /\u003e\n    \u003ca href=\"https://twitter.com/danielsaidi\"\u003e\u003cimg src=\"https://img.shields.io/twitter/url?label=Twitter\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fdanielsaidi\" alt=\"Twitter: @danielsaidi\" title=\"Twitter: @danielsaidi\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://mastodon.social/@danielsaidi\"\u003e\u003cimg src=\"https://img.shields.io/mastodon/follow/000253346?label=mastodon\u0026style=social\" alt=\"Mastodon: @danielsaidi@mastodon.social\" title=\"Mastodon: @danielsaidi@mastodon.social\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n## About ScrollKit\n\nScrollKit is a SwiftUI SDK that adds powerful scroll features, like offset tracking and a header view that stretches \u0026 transforms as you pull down, and sticks to the top when you scroll.\n\n\u003cp align=\"center\" style=\"border-radius: 10px\"\u003e\n    \u003cimg src=\"Resources/Demo.gif\" width=425 /\u003e\n\u003c/p\u003e\n\nScrollKit works on all major Apple platforms and is designed to be easy to use. It current doesn't use the new `ScrollView` APIs for OS backwards compatibility reasons, but will eventually do so.\n\n\n\n## Installation\n\nScrollKit can be installed with the Swift Package Manager:\n\n```\nhttps://github.com/danielsaidi/ScrollKit.git\n```\n\n\n\n## Getting started\n\nScrollKit has a `ScrollViewWithOffsetTracking` view that can detect scrolling:\n\n```swift\nScrollViewWithOffsetTracking { offset in\n    print(offset)\n} content: {\n    // Add your scroll content here, e.g. a `LazyVStack`\n}\n```\n\nScrollKit also has a `ScrollViewWithStickyHeader` that makes it easy to set up a stretchy, sticky header:\n\n```swift\nstruct MyView: View {\n\n    @State\n    private var offset = CGPoint.zero\n    \n    @State\n    private var visibleRatio = CGFloat.zero\n    \n    func handleOffset(_ scrollOffset: CGPoint, visibleHeaderRatio: CGFloat) {\n        self.offset = scrollOffset\n        self.visibleRatio = visibleHeaderRatio\n    }\n    \n    func header() -\u003e some View {\n        ZStack(alignment: .bottomLeading) {\n            Color.blue\n            Color.yellow.opacity(visibleRatio)  // Fades in\n        }\n    }\n\n    var body: some View {\n        ScrollViewWithStickyHeader(\n            header: header,\n            headerHeight: 250,\n            headerMinHeight: 150,\n            onScroll: handleOffset\n        ) {\n            // Add your scroll content here, e.g. a `LazyVStack`\n        }\n    }\n}\n```\n\nFor more information, please see the [getting started guide][Getting-Started].\n\n\n\n## Documentation\n\nThe [online documentation][Documentation] has more information, articles, code examples, etc.\n\n\n\n## Demo Application\n\nThe demo app lets you explore the library. To try it out, just open and run the `Demo` project.\n\n\n\n## Support my work\n\nYou can [sponsor me][Sponsors] on GitHub Sponsors or [reach out][Email] for paid support, to help support my [open-source projects][OpenSource].\n\nYour support makes it possible for me to put more work into these projects and make them the best they can be.\n\n\n\n## Contact\n\nFeel free to reach out if you have questions or want to contribute in any way:\n\n* Website: [danielsaidi.com][Website]\n* Mastodon: [@danielsaidi@mastodon.social][Mastodon]\n* Twitter: [@danielsaidi][Twitter]\n* E-mail: [daniel.saidi@gmail.com][Email]\n\n\n\n## License\n\nScrollKit is available under the MIT license. See the [LICENSE][License] file for more info.\n\n\n\n[Email]: mailto:daniel.saidi@gmail.com\n\n[Website]: https://danielsaidi.com\n[GitHub]: https://github.com/danielsaidi\n[Twitter]: https://twitter.com/danielsaidi\n[Mastodon]: https://mastodon.social/@danielsaidi\n[OpenSource]: https://danielsaidi.com/opensource\n[Sponsors]: https://github.com/sponsors/danielsaidi\n\n[Documentation]: https://danielsaidi.github.io/ScrollKit/\n[Getting-Started]: https://danielsaidi.github.io/ScrollKit/documentation/scrollkit/getting-started\n\n[License]: https://github.com/danielsaidi/ScrollKit/blob/master/LICENSE\n","funding_links":["https://github.com/sponsors/danielsaidi"],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsaidi%2FScrollKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielsaidi%2FScrollKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielsaidi%2FScrollKit/lists"}