{"id":18270557,"url":"https://github.com/pyro2927/GKLParallaxPictures","last_synced_at":"2025-04-05T01:30:43.965Z","repository":{"id":5558792,"uuid":"6763613","full_name":"pyro2927/GKLParallaxPictures","owner":"pyro2927","description":"Parallax ViewController made specifically for showcasing multiple images","archived":false,"fork":false,"pushed_at":"2014-01-20T17:30:19.000Z","size":4227,"stargazers_count":199,"open_issues_count":4,"forks_count":29,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-29T02:50:00.656Z","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/pyro2927.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":"2012-11-19T16:43:41.000Z","updated_at":"2024-05-31T23:27:32.000Z","dependencies_parsed_at":"2022-08-25T21:40:42.077Z","dependency_job_id":null,"html_url":"https://github.com/pyro2927/GKLParallaxPictures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FGKLParallaxPictures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FGKLParallaxPictures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FGKLParallaxPictures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyro2927%2FGKLParallaxPictures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyro2927","download_url":"https://codeload.github.com/pyro2927/GKLParallaxPictures/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:43.448Z","updated_at":"2025-04-05T01:30:41.555Z","avatar_url":"https://github.com/pyro2927.png","language":"Objective-C","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"## GKLParallaxPictures\n\nThis component allows you to display an image gallery on top of a simple `UIView` or `UIWebView`. Scroll and you will see a nice parallax effect.\n\n![](https://raw.github.com/pyro2927/GKLParallaxPictures/master/screenshot1.gif)\n\n### Install\n\nThe easiest way to install this component is via [CocoaPods](http://cocoapods.org/).\n\nAdd the following line to your `podfile`:\n\n    pod 'GKLParallaxPictures'\n\nThen run the `pod install` command and import `GKLParallaxPicturesViewController.h` where you plan to use this.\n\nYou can also install it manually. Just drag `GKLParallaxPicturesViewController.h` and `GKLParallaxPicturesViewController.m` in your project and import the `.h` file where you want to use this component.\n\n\n### How To Use\n\n\tGKLParallaxPicturesViewController *paralaxViewController = [[GKLParallaxPicturesViewController alloc] initWithImages:imagesArray andContentView:contentView];\n\t\nWhere `contentView` is the detailed view you want below your images.\n\nYou can always add more images after the view controller is instantiated by calling:\n\n\t[paralaxViewController addImages:moreImagesArray];\n\nImage arrays can contain both istances of `UIImage` and `NSString`. In the latter case those will be URLs of those images which will be loaded asynchronously.\n\n#### Displaying a web view\n\nThis is the reason I forked for. It was not possible to display an `UIWebView` as the `contentView`.\n\n    UIWebView *testWebView = [[UIWebView alloc] init];\n    [testWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@\"http://nshipster.com/\"]]];\n    \n    UIImage *testImage = [UIImage imageNamed:@\"shovel\"];\n    NSArray *images = @[testImage, testImage, testImage];\n    \n    GKLParallaxPicturesViewController *paralaxViewController = [[GKLParallaxPicturesViewController alloc] initWithImages:images\n                                                                                                          andContentWebView:testWebView];\n\nResult:\n\n![](https://raw.github.com/frankdilo/GKLParallaxPictures/master/screenshot2.png)\n\n\n### URL Image Loading\n\nGKLParallaxPictures accepts both UIImages and NSStrings (of an image URL) for adding UIImageViews into the top gallery.  By default it uses dispatch_queue to load images asynchronously, but you can subclass GKLParallaxPictures and overwrite this method to handle image loading however you choose.\n\nDefault image loading:\n\n\t-(void)loadImageFromURLString:(NSString*)urlString forImageView:(UIImageView*)imageView{\n    \tdispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0ul);\n    \tdispatch_async(queue, ^{\n        \tNSData *imageData = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:urlString]];\n        \tdispatch_sync(dispatch_get_main_queue(), ^{\n            \tUIImage *downloadedImage = [[UIImage alloc] initWithData:imageData];\n            \t[imageView setImage:downloadedImage];\n        \t});\n    \t});\n\t}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2FGKLParallaxPictures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyro2927%2FGKLParallaxPictures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyro2927%2FGKLParallaxPictures/lists"}