{"id":20620875,"url":"https://github.com/irons163/irphotogallery","last_synced_at":"2026-04-27T05:02:12.226Z","repository":{"id":56915174,"uuid":"222623679","full_name":"irons163/IRPhotoGallery","owner":"irons163","description":"IRPhotoGallery is a powerful photo gallery for iOS.","archived":false,"fork":false,"pushed_at":"2020-01-02T08:26:56.000Z","size":2440,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T22:13:24.340Z","etag":null,"topics":["album","camera","filters","gallery","image-filters","image-processing","imagefilter","ios","objcective-c","photo-gallery","photogallery","scalability"],"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/irons163.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":"2019-11-19T06:22:48.000Z","updated_at":"2020-01-02T08:29:02.000Z","dependencies_parsed_at":"2022-08-20T21:20:20.972Z","dependency_job_id":null,"html_url":"https://github.com/irons163/IRPhotoGallery","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/irons163/IRPhotoGallery","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPhotoGallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPhotoGallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPhotoGallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPhotoGallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irons163","download_url":"https://codeload.github.com/irons163/IRPhotoGallery/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irons163%2FIRPhotoGallery/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32323215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["album","camera","filters","gallery","image-filters","image-processing","imagefilter","ios","objcective-c","photo-gallery","photogallery","scalability"],"created_at":"2024-11-16T12:15:57.423Z","updated_at":"2026-04-27T05:02:12.191Z","avatar_url":"https://github.com/irons163.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Build Status](https://img.shields.io/badge/build-%20passing%20-brightgreen.svg)\n![Platform](https://img.shields.io/badge/Platform-%20iOS%20-blue.svg)\n\n# IRPhotoGallery \n\n- IRPhotoGallery is a powerful photo gallery for iOS.\n\n## Features\n- Support multiple gallery modes.\n    - Horizontal\n    - Vertical\n    - Normal\n    - Deletable\n    - Scalable\n    - HasButton\n    - NoButton\n- Full screen gallery.\n- Customable functions.\n- Amazing camera.\n\n## Install\n### Git\n- Git clone this project.\n- Copy this project into your own project.\n- Add the .xcodeproj into you  project and link it as embed framework.\n#### Options\n- You can remove the `demo` and `ScreenShots` folder.\n\n### Cocoapods\n- Add `pod 'IRPhotoGallery'`  in the `Podfile`\n- `pod install`\n\n## Usage\n\n### Basic\n\n- Use `PhotoManageViewController`, it include multi parts: Gallery, Preview, Camera, Album, Filters, etc... \n```obj-c\nNSBundle *bundle = [NSBundle bundleForClass:[PhotoManageViewController class]];\nphotoManageViewController = [[PhotoManageViewController alloc] initWithNibName:@\"PhotoManageViewController\" bundle:bundle];\nphotoManageViewController.delegate = self;\nphotoManageViewController.cameraDelegate = self;\n[IRCameraColor setTintColor: [UIColor whiteColor]];\n\n[self.navigationController pushViewController:photoManageViewController animated:YES];\n```\n\n- Use `PhotoManageBrowser`, it just a gallery view\n```objc\nphotoManageBrowser = [[PhotoManageBrowser alloc] init];\n[photoManageBrowser setStyle:Normal];\n[photoManageBrowser setDirection:ScrollDirectionHorizontal];\n__weak ViewController* wSelf = self;\n[photoManageBrowser setItemSelectedBlock:^(NSIndexPath *indexPath) {\n    NSBundle *bundle = [NSBundle bundleForClass:[PhotoGalleryViewController class]];\n    PhotoGalleryViewController* photoGalleryViewController = [[PhotoGalleryViewController alloc] initWithNibName:@\"PhotoGalleryViewController\" bundle:bundle];\n    photoGalleryViewController.delegate = wSelf;\n    photoGalleryViewController.imageIndex = indexPath.row;\n    [wSelf presentViewController:photoGalleryViewController animated:YES completion:nil];\n}];\nphotoManageBrowser.delegate = self;\n[self.view addSubview:photoManageBrowser];\n```\n\n- PhotoManageBrowserStyle\n\n|PhotoManageViewController |\n|:---:|\n| Normal |\n| Deletable |\n| Scalable |\n\n```objc\n[photoManageBrowser setStyle:Normal];\n```\n\n- PhotoManageBrowserStyle\n\n|PhotoManageBrowserScrollDirection |\n|:---:|\n| ScrollDirectionVertical |\n|ScrollDirectionHorizontal |\n\n```objc\n[photoManageBrowser setDirection:ScrollDirectionHorizontal];\n```\n\n- Delegates\n```objc\n#pragma mark - PhotoManageBrowserDelegate\n- (NSUInteger)numberOfPhotos {\n    return photos.count;\n}\n\n- (NSString *)titleOfPhotoWithIndex:(NSInteger)index {\n    return [photos objectAtIndex:index].note;\n}\n\n- (id)imageOrPathStringOfPhotoWithIndex:(NSInteger)index {\n    \n    return [images objectAtIndex:index];\n}\n\n#pragma mark - CameraViewControllerDelegate\n- (void)didTakePhoto:(UIImage *)image Note:(NSString *)note {\n    Photo *photo = [NSEntityDescription insertNewObjectForEntityForName:@\"Photo\" inManagedObjectContext:context];\n    photo.photo = UIImagePNGRepresentation(image);\n    photo.note = note;\n    [(AppDelegate *)[[UIApplication sharedApplication] delegate] saveContext];\n    [self reloadPhotos];\n    [photoManageViewController reloadUI];\n}\n\n- (void)doUpdatePhoto:(UIImage *)image Note:(NSString *)note Completed:(nullable IRCompletionBlock)completedBlock {\n    [photoManageViewController showLoading:YES];\n    NSInteger index = [images indexOfObject:image];\n    Photo *photo = [photos objectAtIndex:index];\n    photo.photo = UIImagePNGRepresentation(image);\n    photo.note = note;\n    [(AppDelegate *)[[UIApplication sharedApplication] delegate] saveContext];\n    if (completedBlock) {\n        completedBlock(YES);\n    }\n    [photoManageViewController reloadUI];\n    [photoManageViewController showLoading:NO];\n}\n\n- (void)doDeletePhoto:(UIImage *)image {\n    NSInteger index = [images indexOfObject:image];\n    Photo *photo = [photos objectAtIndex:index];\n    [context deleteObject:photo];\n    [(AppDelegate *)[[UIApplication sharedApplication] delegate] saveContext];\n    [self reloadPhotos];\n    [photoManageViewController reloadUI];\n}\n```\n\n### Advanced settings\n\n- Customize functions of  `PhotoManageBrowser`, 4 blocks let you override the default feature\n```objc\n@property (nonatomic, copy) CurrentPageChangedBlock currentPageChangedBlock;\n@property (nonatomic, copy) ItemSelectedBlock itemSelectedBlock;\n@property (nonatomic, copy) DeleteClickBlock deleteClickBlock;\n@property (nonatomic, copy) EditClickBlock editClickBlock;\n```\n\n- Use `PhotoGalleryViewController`, it is a simple gallery view controller\n```obj-c\nNSBundle *bundle = [NSBundle bundleForClass:[PhotoGalleryViewController class]];\nPhotoGalleryViewController* photoGalleryViewController = [[PhotoGalleryViewController alloc] initWithNibName:@\"PhotoGalleryViewController\" bundle:bundle];\nphotoGalleryViewController.delegate = wSelf;\nphotoGalleryViewController.imageIndex = indexPath.row;\n[wSelf presentViewController:photoGalleryViewController animated:YES completion:nil];\n```\n\n## Screenshots\n| PhotoManageViewController | PhotoManageBrowser |\n|:---:|:---:|\n|![PhotoManageViewController](./ScreenShots/demo1.png)|![PhotoManageBrowser](./ScreenShots/demo2.png)| \n| Camera | Album |\n|![Camera](./ScreenShots/demo3.png)|![Album](./ScreenShots/demo4.png)| \n| PhotoGalleryViewController | Full Screen Gallery |\n|![PhotoGalleryViewController](./ScreenShots/demo5.png)|![Full Screen Gallery](./ScreenShots/demo6.png)| \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firphotogallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firons163%2Firphotogallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firons163%2Firphotogallery/lists"}