{"id":13396482,"url":"https://github.com/hyperoslo/ImagePicker","last_synced_at":"2025-03-13T23:31:17.677Z","repository":{"id":41374471,"uuid":"40171919","full_name":"hyperoslo/ImagePicker","owner":"hyperoslo","description":":camera: Reinventing the way ImagePicker works.","archived":false,"fork":false,"pushed_at":"2024-08-27T11:37:38.000Z","size":14503,"stargazers_count":4866,"open_issues_count":24,"forks_count":677,"subscribers_count":100,"default_branch":"master","last_synced_at":"2024-10-15T13:41:26.641Z","etag":null,"topics":["imagepicker","ios","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hyperoslo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SupportFiles/Info.plist","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-04T08:13:33.000Z","updated_at":"2024-10-14T06:00:42.000Z","dependencies_parsed_at":"2024-06-18T12:16:06.441Z","dependency_job_id":"b0b1e842-57b9-42c3-99c6-e25921a5c504","html_url":"https://github.com/hyperoslo/ImagePicker","commit_stats":{"total_commits":655,"total_committers":59,"mean_commits":"11.101694915254237","dds":0.6381679389312978,"last_synced_commit":"d8a8f840380b9a28230c8fcad277adb458706d0a"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FImagePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FImagePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FImagePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hyperoslo%2FImagePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hyperoslo","download_url":"https://codeload.github.com/hyperoslo/ImagePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421545,"owners_count":16817827,"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":["imagepicker","ios","swift"],"created_at":"2024-07-30T18:00:54.745Z","updated_at":"2024-10-25T11:30:39.438Z","avatar_url":"https://github.com/hyperoslo.png","language":"Swift","funding_links":[],"categories":["UI","Swift","Hardware","Libs"],"sub_categories":["Other free courses","UI"],"readme":"![ImagePicker](https://github.com/hyperoslo/ImagePicker/blob/master/Resources/ImagePickerPresentation.png)\n\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![License](https://img.shields.io/cocoapods/l/ImagePicker.svg?style=flat)](http://cocoadocs.org/docsets/ImagePicker)\n[![Platform](https://img.shields.io/cocoapods/p/ImagePicker.svg?style=flat)](http://cocoadocs.org/docsets/ImagePicker)\n\n## Description\n\n\u003cimg src=\"https://github.com/hyperoslo/ImagePicker/blob/master/Resources/ImagePickerIcon.png\" alt=\"ImagePicker Icon\" align=\"right\" /\u003e\n\n**ImagePicker** is an all-in-one camera solution for your iOS app. It lets your users select images from the library and take pictures at the same time. As a developer you get notified of all the user interactions and get the beautiful UI for free, out of the box, it's just that simple.\n\n**ImagePicker** has been optimized to give a great user experience, it passes around referenced images instead of the image itself which makes it less memory consuming. This is what makes it smooth as butter.\n\n## Usage\n\n**ImagePicker** works as a normal controller, just instantiate it and present it.\n\n```swift\nlet imagePickerController = ImagePickerController()\nimagePickerController.delegate = self\npresent(imagePickerController, animated: true, completion: nil)\n```\n\n**ImagePicker** has three delegate methods that will inform you what the users are up to:\n\n```swift\nfunc wrapperDidPress(_ imagePicker: ImagePickerController, images: [UIImage])\nfunc doneButtonDidPress(_ imagePicker: ImagePickerController, images: [UIImage])\nfunc cancelButtonDidPress(_ imagePicker: ImagePickerController)\n```\n\n**ImagePicker** supports limiting the amount of images that can be selected, it defaults\nto zero, which means that the user can select as many images as he/she wants.\n\n```swift\nlet imagePickerController = ImagePickerController()\nimagePickerController.imageLimit = 5\n```\n\n### Optional bonus\n\n##### Configuration\n\nYou can inject `Configuration` instance to ImagePicker, which allows you to configure text, colors, fonts and camera features\n\n```swift\nvar configuration = Configuration()\nconfiguration.doneButtonTitle = \"Finish\"\nconfiguration.noImagesTitle = \"Sorry! There are no images here!\"\nconfiguration.recordLocation = false\n\nlet imagePicker = ImagePickerController(configuration: configuration)\n```\n\n##### Resolve assets\n\nAs said before, **ImagePicker** works with referenced images, that is really powerful because it lets you download the asset and choose the size you want. If you want to change the default implementation, just add a variable in your controller.\n\n```swift\npublic var imageAssets: [UIImage] {\n  return AssetManager.resolveAssets(imagePicker.stack.assets)\n}\n```\n\nAnd when you call any delegate method that returns images, add in the first line:\n\n```swift\nlet images = imageAssets\n```\n\n## FAQ\n\n### Limiting selection to 1 item\n\n```swift\nlet config = Configuration()\nconfig.allowMultiplePhotoSelection = false\nlet imagePicker = ImagePickerController(configuration: config)\nimagePicker.delegate = self\n```\n\n## Installation\n\n**ImagePicker** is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ImagePicker'\n```\n\n**ImagePicker** is also available through [Carthage](https://github.com/Carthage/Carthage).\nTo install just write into your Cartfile:\n\n```ruby\ngithub \"hyperoslo/ImagePicker\"\n```\n\n## Author\n\n[Hyper](http://hyper.no) made this with ❤️\n\n## Contribute\n\nWe would love you to contribute to **ImagePicker**, check the [CONTRIBUTING](https://github.com/hyperoslo/ImagePicker/blob/master/CONTRIBUTING.md) file for more info.\n\n## License\n\n**ImagePicker** is available under the MIT license. See the [LICENSE](https://github.com/hyperoslo/ImagePicker/blob/master/LICENSE.md) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2FImagePicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperoslo%2FImagePicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperoslo%2FImagePicker/lists"}