{"id":13466339,"url":"https://github.com/ngochiencse/HPParallaxHeader","last_synced_at":"2025-03-25T21:32:11.006Z","repository":{"id":39841844,"uuid":"344523227","full_name":"ngochiencse/HPParallaxHeader","owner":"ngochiencse","description":"Simple parallax header for UIScrollView.","archived":false,"fork":false,"pushed_at":"2024-07-17T11:21:30.000Z","size":8520,"stargazers_count":57,"open_issues_count":2,"forks_count":16,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T01:01:57.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ngochiencse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2021-03-04T15:36:32.000Z","updated_at":"2025-02-18T04:25:30.000Z","dependencies_parsed_at":"2024-10-29T19:04:49.499Z","dependency_job_id":null,"html_url":"https://github.com/ngochiencse/HPParallaxHeader","commit_stats":{"total_commits":88,"total_committers":3,"mean_commits":"29.333333333333332","dds":"0.31818181818181823","last_synced_commit":"0ced2541837098f5b18beaed68f1e88b2dec84d9"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngochiencse%2FHPParallaxHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngochiencse%2FHPParallaxHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngochiencse%2FHPParallaxHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ngochiencse%2FHPParallaxHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ngochiencse","download_url":"https://codeload.github.com/ngochiencse/HPParallaxHeader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245548208,"owners_count":20633536,"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":[],"created_at":"2024-07-31T15:00:42.636Z","updated_at":"2025-03-25T21:32:08.305Z","avatar_url":"https://github.com/ngochiencse.png","language":"Swift","funding_links":[],"categories":["Libs"],"sub_categories":["UI"],"readme":"# HPParallaxHeader\n\n[![Travis (.com)](https://img.shields.io/travis/com/ngochiencse/HPParallaxHeader)](https://www.travis-ci.com/github/ngochiencse/HPParallaxHeader)\n[![Version](https://img.shields.io/cocoapods/v/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)\n[![Swift 5.4](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fngochiencse%2FHPParallaxHeader%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/ngochiencse/HPParallaxHeader)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)\n[![Cocoapods platforms](https://img.shields.io/cocoapods/p/HPParallaxHeader)](http://cocoapods.org/pods/HPParallaxHeader)\n\nHPParallaxHeader is a Swift conversion from https://github.com/maxep/MXParallaxHeader.\n\nHPParallaxHeader is a simple header class for UIScrollView.\n\nIn addition, HPScrollView is a UIScrollView subclass with the ability to hook the vertical scroll from its subviews, this can be used to add a parallax header to complex view hierachy. Moreover, HPScrollViewController allows you to add a HPParallaxHeader to any kind of UIViewController.\n\n|             UIScrollView        |           HPScrollViewController          |\n|---------------------------------|-------------------------------------------|\n|![Demo](Example/demo1.gif)|![Demo](Example/demo2.gif)|\n\n## Usage\n\nIf you want to try it, simply run:\n\n```\npod try HPParallaxHeader\n```\n\n+ Adding a parallax header to a UIScrollView is straightforward, e.g:\n\n```swift\nlet headerView = UIImageView()\nheaderView.image = UIImage(named: \"success-baby\")\nheaderView.contentMode = .scaleAspectFit\n\nlet scrollView = UIScrollView()\nscrollView.parallaxHeader.view = headerView\nscrollView.parallaxHeader.height = 150\nscrollView.parallaxHeader.mode = .fill\nscrollView.parallaxHeader.minimumHeight = 20\n```\n\n+ The HPScrollViewController is a container with a child view controller that can be added programmatically or using the custom segue HPScrollViewControllerSegue.\n\n## Installation\n\n### Swift Package Manager \n\nYou can use  [Swift Package Manager](https://swift.org/package-manager/)  directly within Xcode or add it to the `dependencies` value of your `Package.swift`.\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/ngochiencse/HPParallaxHeader\", .upToNextMajor(from: \"1.1.8\"))\n]\n```\n\n### CocoaPods\n\nHPParallaxHeader is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:\n\n```ruby\npod \"HPParallaxHeader\"\n```\n\n## Documentation\n\nDocumentation is available through [GitHub](https://ngochiencse.github.io/HPParallaxHeader/documentation/hpparallaxheader).\n\n## Author\n\n[Hien Pham](https://github.com/ngochiencse)\n\n![Twitter URL](https://img.shields.io/twitter/url?style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fngochien91)\n\n## License\n\nHPParallaxHeader is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngochiencse%2FHPParallaxHeader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fngochiencse%2FHPParallaxHeader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fngochiencse%2FHPParallaxHeader/lists"}