{"id":13466403,"url":"https://github.com/maxep/MXParallaxHeader","last_synced_at":"2025-03-25T21:32:15.321Z","repository":{"id":44556857,"uuid":"45129018","full_name":"maxep/MXParallaxHeader","owner":"maxep","description":"Simple parallax header for UIScrollView","archived":false,"fork":false,"pushed_at":"2021-09-14T02:56:31.000Z","size":14465,"stargazers_count":1746,"open_issues_count":2,"forks_count":251,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-24T00:45:39.584Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/maxep.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}},"created_at":"2015-10-28T17:13:22.000Z","updated_at":"2025-03-23T13:57:31.000Z","dependencies_parsed_at":"2022-07-19T12:54:59.118Z","dependency_job_id":null,"html_url":"https://github.com/maxep/MXParallaxHeader","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxep%2FMXParallaxHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxep%2FMXParallaxHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxep%2FMXParallaxHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxep%2FMXParallaxHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxep","download_url":"https://codeload.github.com/maxep/MXParallaxHeader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245548333,"owners_count":20633560,"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:43.603Z","updated_at":"2025-03-25T21:32:15.285Z","avatar_url":"https://github.com/maxep.png","language":"Objective-C","readme":"# MXParallaxHeader\n\n[![CI Status](http://img.shields.io/travis/maxep/MXParallaxHeader.svg?style=flat)](https://travis-ci.org/maxep/MXParallaxHeader)\n[![Version](https://img.shields.io/cocoapods/v/MXParallaxHeader.svg?style=flat)](http://cocoapods.org/pods/MXParallaxHeader)\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/MXParallaxHeader.svg?style=flat)](http://cocoapods.org/pods/MXParallaxHeader)\n[![Platform](https://img.shields.io/cocoapods/p/MXParallaxHeader.svg?style=flat)](http://cocoapods.org/pods/MXParallaxHeader)\n\n:warning: This project is no longer maintained, see [#124](https://github.com/maxep/MXParallaxHeader/issues/124) :warning:\n\nMXParallaxHeader is a simple header class for UIScrollView.\n\nIn addition, MXScrollView 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, MXScrollViewController allows you to add a MXParallaxHeader to any kind of UIViewController.\n\n|             UIScrollView        |           MXScrollViewController          |\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 MXParallaxHeader\n```\n\n+ Adding a parallax header to a UIScrollView is straightforward, e.g:\n\n\u003cdetails open=1\u003e\n\u003csummary\u003eSwift\u003c/summary\u003e\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\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003eObjective-C\u003c/summary\u003e\n\n```objective-c\nUIImageView *headerView = [UIImageView new];\nheaderView.image = [UIImage imageNamed:@\"success-baby\"];\nheaderView.contentMode = UIViewContentModeScaleAspectFill;\n\nUIScrollView *scrollView = [UIScrollView new]; \nscrollView.parallaxHeader.view = headerView;\nscrollView.parallaxHeader.height = 150;\nscrollView.parallaxHeader.mode = MXParallaxHeaderModeFill;\nscrollView.parallaxHeader.minimumHeight = 20;\n```\n\u003c/details\u003e\n\n\n+ The MXScrollViewController is a container with a child view controller that can be added programmatically or using the custom segue MXScrollViewControllerSegue.\n\n+ Please check examples for **Swift** implementations.\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/mexp/MXParallaxHeader\", .upToNextMajor(from: \"1.1.0\"))\n]\n```\n\n### CocoaPods\n\nMXParallaxHeader is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"MXParallaxHeader\"\n```\n\n## Documentation\n\nDocumentation is available through [CocoaDocs](http://cocoadocs.org/docsets/MXParallaxHeader/).\n\n## Author\n\n[Maxime Epain](http://maxep.github.io)\n\n[![Twitter](https://img.shields.io/badge/twitter-%40MaximeEpain-blue.svg?style=flat)](https://twitter.com/MaximeEpain)\n\n## License\n\nMXParallaxHeader is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["Libs","Parallax","UI [🔝](#readme)","HarmonyOS","Objective-C","etc"],"sub_categories":["UI","Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxep%2FMXParallaxHeader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxep%2FMXParallaxHeader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxep%2FMXParallaxHeader/lists"}