{"id":15293604,"url":"https://github.com/asifbilal786/simplephotopicker","last_synced_at":"2025-06-16T19:37:44.293Z","repository":{"id":62455458,"uuid":"60362862","full_name":"asifbilal786/SimplePhotoPicker","owner":"asifbilal786","description":"This is the simple photo picker which uses default iPhone SDK with UIImagePickerController","archived":false,"fork":false,"pushed_at":"2016-06-20T11:13:17.000Z","size":427,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-23T06:09:26.661Z","etag":null,"topics":["default-iphone-sdk","ios-swift","photopicker","pod","swift","swift-3","uiimagepickercontroller","xcode","xcode8"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/asifbilal786.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":"2016-06-03T16:41:42.000Z","updated_at":"2018-08-31T17:44:23.000Z","dependencies_parsed_at":"2022-11-02T00:16:56.910Z","dependency_job_id":null,"html_url":"https://github.com/asifbilal786/SimplePhotoPicker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/asifbilal786/SimplePhotoPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asifbilal786%2FSimplePhotoPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asifbilal786%2FSimplePhotoPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asifbilal786%2FSimplePhotoPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asifbilal786%2FSimplePhotoPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asifbilal786","download_url":"https://codeload.github.com/asifbilal786/SimplePhotoPicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asifbilal786%2FSimplePhotoPicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260224605,"owners_count":22977432,"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":["default-iphone-sdk","ios-swift","photopicker","pod","swift","swift-3","uiimagepickercontroller","xcode","xcode8"],"created_at":"2024-09-30T16:50:10.739Z","updated_at":"2025-06-16T19:37:44.262Z","avatar_url":"https://github.com/asifbilal786.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimplePhotoPicker\nThis is the simple photo picker which uses default iPhone SDK with UIImagePickerController.\nSimplePhotoPicker is a control that optionally takes inputs of Source Type \u0026 allow Editing. On the basis of these inputs, this control displays the action sheet if needed and displays the iOS default image editor if selected. It has simple block based implementation. No need to implement delegate methods.\n\n## Demo\n![gif1](https://raw.githubusercontent.com/asifbilal786/SimplePhotoPicker/screenshots/SimplePhotoPicker.gif)\n\n### Screenshots\n[![iphone1](https://raw.githubusercontent.com/asifbilal786/SimplePhotoPicker/screenshots/Screenshot_1.png)](https://raw.githubusercontent.com/asifbilal786/SimplePhotoPicker/screenshots/Screenshot_1.png)\n\n## Requirements\n\n- iOS 8 and above.\n- Xcode 7 and above\n\n\n## Adding SimplePhotoPicker to your project\n\n### METHOD 1:\n1. Add a pod entry for `SimplePhotoPicker` to your Podfile\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '8.0'\nuse_frameworks!\n\npod 'SimplePhotoPicker', '~\u003e 0.1'\n``` \n\n2. Install the pod(s) by running `pod install`.\n\n### MEHTOD 2: (Source files)\nAlternatively, you can directly add file `PhotoPicker.swift` under the folder PhotoPicker to your project.\n\n1. Download the [latest code version](https://github.com/asifbilal786/SimplePhotoPicker/archive/master.zip) or add the repository as a git submodule to your git-tracked project.\n2. Open your Xcode project, then drag and drop `PhotoPicker.swift` directory onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.\n \n\n## Usage\n\nCreate instance variable of PhotoPicker in your view controller.\n\n```\nprivate lazy var photoPicker = PhotoPicker()\n```\n\nAnd then call the pick function with options.\n\n```\nphotoPicker.pick(allowsEditing, pickerSourceType: pickerSourceType, controller: self) { (originalPhoto, editedPhoto) in\n            if self.allowsEditing { self.imageView.image = editedPhoto}\n            else { self.imageView.image = originalPhoto}\n        }\n```\n\nSee example projects for detail.\n\n## License\nThis code is distributed under the terms and conditions of the [MIT license](LICENSE). \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasifbilal786%2Fsimplephotopicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasifbilal786%2Fsimplephotopicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasifbilal786%2Fsimplephotopicker/lists"}