{"id":15628106,"url":"https://github.com/kimar/kiimagepager","last_synced_at":"2025-04-04T22:04:45.626Z","repository":{"id":7894904,"uuid":"9273783","full_name":"kimar/KIImagePager","owner":"kimar","description":"The KIImagePager is inspired by foursquare's ImageSlideshow, the user may scroll through images loaded from the Web","archived":false,"fork":false,"pushed_at":"2023-10-11T12:48:04.000Z","size":1548,"stargazers_count":323,"open_issues_count":16,"forks_count":78,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-03-28T21:02:54.782Z","etag":null,"topics":["gallery","hacktoberfest","image","library","objective-c","preview","slideshow"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":false,"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/kimar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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":"kimar","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2013-04-07T08:33:14.000Z","updated_at":"2024-07-15T06:11:37.000Z","dependencies_parsed_at":"2023-10-11T15:30:17.178Z","dependency_job_id":null,"html_url":"https://github.com/kimar/KIImagePager","commit_stats":{"total_commits":129,"total_committers":24,"mean_commits":5.375,"dds":0.7286821705426356,"last_synced_commit":"8c876d7a227a14e59bde8c2439edbd2532e031fb"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimar%2FKIImagePager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimar%2FKIImagePager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimar%2FKIImagePager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimar%2FKIImagePager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimar","download_url":"https://codeload.github.com/kimar/KIImagePager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256110,"owners_count":20909240,"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":["gallery","hacktoberfest","image","library","objective-c","preview","slideshow"],"created_at":"2024-10-03T10:21:05.331Z","updated_at":"2025-04-04T22:04:45.600Z","avatar_url":"https://github.com/kimar.png","language":"Objective-C","readme":"## KIImagePager\n\n[![License](https://img.shields.io/badge/license-MIT-blue.png)](http://opensource.org/licenses/MIT)\n\n### Deprecation Notice\n\n**Please note I've written this library years ago to be used in a customer's project, it's deprecated by now. In case anyone wants to raise a PR to fix issues or improve something: Go for it, I'll review and merge if suitable.**\n\nThis UIView Subclass is used to present Images loaded from the Web and is inspired from foursquare's Image Slideshow. The used will be downloaded asynchronously. Former dependencies on SDWebImage have been removed.\n\nThis is what the ImagePager looks like when it's set up:\n\n![Demo GIF Animation](https://raw.githubusercontent.com/kimar/KIImagePager/main/.meta/demo.gif)\n\nImplementing the ImagePager is fairly easy, just set it up in Interface Builder or use it in code directly.\n\nOptionally customize the PageControl's appearance:\n\n```objective-c\n- (void) viewDidAppear:(BOOL)animated\n{\n    [super viewDidAppear:animated];\n\n    _imagePager.pageControl.currentPageIndicatorTintColor = [UIColor lightGrayColor];\n    _imagePager.pageControl.pageIndicatorTintColor = [UIColor blackColor];\n    _imagePager.pageControlCenter = CGPointMake(CGRectGetWidth(_imagePager.frame) / 2, CGRectGetHeight(_imagePager.frame) - 42);\n}\n```\n\nPageControl and ImageCounter can be hidden separately by setting `imageCounterDisabled` and `imageCounterDisabled` property. There is also a property `hidePageControlForSinglePages`.\n\nNow implement it's DataSource and (optionally) Delegate methods:\n\n```objective-c\n- (NSArray *) arrayWithImages:(KIImagePager*)pager\n{\n    return @[\n            @\"https://raw.github.com/kimar/tapebooth/master/Screenshots/Screen1.png\",\n            [UIImage imageNamed:@\"MySuperImage1\"],\n            @\"https://raw.github.com/kimar/tapebooth/master/Screenshots/Screen2.png\",\n            [UIImage imageNamed:@\"MySuperImage2\"],\n            @\"https://raw.github.com/kimar/tapebooth/master/Screenshots/Screen3.png\"\n            ];\n}\n```\n\nAs you can see, it's now perfectly ok to mix urlStrings as well as UIImages inside _arrayWithImages_ DataSource method.\n\n```objective-c\n- (UIViewContentMode) contentModeForImage:(NSUInteger)image inPager:(KIImagePager*)pager\n{\n    return UIViewContentModeScaleAspectFill;\n}\n```\n\nOptionally you might define a caption title which will be shown above the images using the _captionForImageAtIndex_ DataSource method.\n\n```objective-c\n- (NSString *) captionForImageAtIndex:(NSUInteger)index inPager:(KIImagePager*)pager\n{\n    return @[\n             @\"First screenshot\",\n             @\"Another screenshot\",\n             @\"Last one! ;-)\"\n             ][index];\n}\n```\n\nIf you'd like to get a SlideShow, just give it an interval for the time between those single slides:\n\n```objective-c\n_imagePager.slideshowTimeInterval = 1.5f;\n```\n\n**The MIT License (MIT)**\n\nCopyright (c) 2013 Marcus Kida\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":["https://github.com/sponsors/kimar"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimar%2Fkiimagepager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimar%2Fkiimagepager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimar%2Fkiimagepager/lists"}