{"id":18270514,"url":"https://github.com/Amnell/APParallaxHeader","last_synced_at":"2025-04-05T01:30:40.047Z","repository":{"id":54980892,"uuid":"9396104","full_name":"Amnell/APParallaxHeader","owner":"Amnell","description":"Category that makes it super easy to add a parallax effect to your UIScrollView/UITableView","archived":false,"fork":false,"pushed_at":"2017-07-31T11:54:42.000Z","size":1443,"stargazers_count":619,"open_issues_count":21,"forks_count":108,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-26T17:18:27.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Amnell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-12T14:28:56.000Z","updated_at":"2024-09-05T15:24:55.000Z","dependencies_parsed_at":"2022-08-14T08:01:07.488Z","dependency_job_id":null,"html_url":"https://github.com/Amnell/APParallaxHeader","commit_stats":null,"previous_names":["apping/apparallaxheader"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amnell%2FAPParallaxHeader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amnell%2FAPParallaxHeader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amnell%2FAPParallaxHeader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amnell%2FAPParallaxHeader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amnell","download_url":"https://codeload.github.com/Amnell/APParallaxHeader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276022,"owners_count":20912285,"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-11-05T11:38:41.222Z","updated_at":"2025-04-05T01:30:38.695Z","avatar_url":"https://github.com/Amnell.png","language":"Objective-C","readme":"# APParallaxHeader\n\nThis category makes it super easy to add a parallax header view to your scroll views. Other alternatives relies on subclassing of `UIScrollView`, `UITableViewController` or `UITableView`. Instead APParallaxHeader uses the Objective-C runtime to add the two following methods to `UIScrollView` without the need to do any subclassing.\n\n```objective-c\n- (void)addParallaxWithImage:(UIImage *)image andHeight:(CGFloat)height andShadow:(BOOL)shadow;\n- (void)addParallaxWithImage:(UIImage *)image andHeight:(CGFloat)height;\n- (void)addParallaxWithView:(UIView*)view andHeight:(CGFloat)height;\n```\n\n\n## Demo\n\n[![Demo](https://raw.github.com/apping/APParallaxHeader/gh-pages/images/MovieScreenshot.png)](http://www.youtube.com/watch?v=7-JMdapWXGU)\n\n\n## Installation\n\n### From CocoaPods\n\nAdd `pod 'APParallaxHeader'` to your Podfile (or `pod 'APParallaxHeader', :head` if you're feeling adventurous, and want to live on the edge).\n\n### Manually\n\n_**Important note if your project doesn't use ARC**: you must add the `-fobjc-arc` compiler flag to `UIScrollView+ APParallaxHeader.m` in Target Settings \u003e Build Phases \u003e Compile Sources._\n\n* Drag the `APParallaxHeader/APParallaxHeader` folder into your project.\n* \\#import `UIScrollView+APParallaxHeader.h` wherever you feel the need.\n\n## Usage\n\n(see sample Xcode project in `/Demo`)\n\n### Adding Parallax image\n\n```objective-c\n[tableView addParallaxWithImage:[UIImage imageNamed:@\"ImageName\"] andHeight:160];\n```\n\n### Adding Parallax custom view\n\nNote: When adding a custom view. Either use ```APParallaxViewDelegate```, auto layout constraints or ```contentMode``` to resize your custom view during scrolling.\n\n```objective-c\nUIView *customView = [[UIView alloc] init];\n[customView setFrame:CGRectMake(0, 0, 320, 160)];\n[self.tableView addParallaxWithView:customView andHeight:160];\n\n[self.tableView.parallaxView setDelegate:self];\n```\n\n### APParallaxViewDelegate\n\nAPParallaxViewDelegate will notify the delegate about resizing of the parallax view.\n\n####Methods:####\n\n* ```- (void)parallaxView:(APParallaxView *)view willChangeFrame:(CGRect)frame```\n* ```- (void)parallaxView:(APParallaxView *)view didChangeFrame:(CGRect)frame```\n\n## ToDo\n\n* Ability to customize the drop shadow size, opacity, color etc.\n* Setting a minimum height\n* Setting contentMode of the imageView\n\n## Known issues\n\n* Section headers for tableviews with style ```UITableViewStylePlain``` will not be pinned as expected during scrolling.\n\n## Changelog\n\n**0.1.6**\n\n* Re-added/fixed optional shadow implementation\n\n**0.1.5**\n\n* Added delegate callbacks for APParallaxView resizes (```APParallaxViewDelegate```).\n\n**0.1.4**\n\n* Ability to inititate with or without an inner shadow.\n* Ability to set a custom view as a parallax view.\n\n**0.1.3**\n\n* Added an inner shadow\n\n**0.1.2**\n\n* Initial release\n\n## Credits\n\nAPParallaxHeader is brought to you by [Mathias Amnell](http://twitter.com/amnell) at [Apping AB](http://apping.se). The code is inspired by [Sam Vermette's](http://samvermette.com) work with [SVPullToRefresh](https://github.com/samvermette/SVPullToRefresh) (especially the usage of `objc/runtime.h` to make it so easy to implement, without the need of subclassing).\n\n## License\nAPParallaxHeader is available under the MIT license. See the LICENSE file for more info.","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmnell%2FAPParallaxHeader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAmnell%2FAPParallaxHeader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAmnell%2FAPParallaxHeader/lists"}