{"id":15055341,"url":"https://github.com/swiftui-packages/image-picker-module","last_synced_at":"2025-04-10T03:36:44.112Z","repository":{"id":63921083,"uuid":"398619641","full_name":"swiftui-packages/image-picker-module","owner":"swiftui-packages","description":"The image picker allow to take pictures with the devices camera or select pictures from the library. It takes care of state management and handles the case of no camera access.","archived":false,"fork":false,"pushed_at":"2022-11-25T08:33:53.000Z","size":27,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-03-14T19:18:11.417Z","etag":null,"topics":["apple","iod","ipados","spm","swift","swift-package","swift-package-manager","swift-packages","swift-ui","swiftui","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swiftui-packages.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":"2021-08-21T17:34:24.000Z","updated_at":"2024-02-02T16:24:25.000Z","dependencies_parsed_at":"2023-01-14T14:15:37.831Z","dependency_job_id":null,"html_url":"https://github.com/swiftui-packages/image-picker-module","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftui-packages%2Fimage-picker-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftui-packages%2Fimage-picker-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftui-packages%2Fimage-picker-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swiftui-packages%2Fimage-picker-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swiftui-packages","download_url":"https://codeload.github.com/swiftui-packages/image-picker-module/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248153582,"owners_count":21056460,"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":["apple","iod","ipados","spm","swift","swift-package","swift-package-manager","swift-packages","swift-ui","swiftui","xcode"],"created_at":"2024-09-24T21:41:02.047Z","updated_at":"2025-04-10T03:36:44.094Z","avatar_url":"https://github.com/swiftui-packages.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Picker Module\n[![build](https://github.com/swiftui-packages/image-picker-module/actions/workflows/build.yml/badge.svg)](https://github.com/swiftui-packages/image-picker-module/actions/workflows/build.yml)\n[![test](https://github.com/swiftui-packages/image-picker-module/actions/workflows/test.yml/badge.svg)](https://github.com/swiftui-packages/image-picker-module/actions/workflows/test.yml)\n[![swiftlint](https://github.com/swiftui-packages/image-picker-module/actions/workflows/swiftlint.yml/badge.svg)](https://github.com/swiftui-packages/image-picker-module/actions/workflows/swiftlint.yml)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d62a7ab525064c0d9a8a9f5a667b2506)](https://www.codacy.com/gh/swiftui-packages/image-picker-module/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=swiftui-packages/image-picker-module\u0026amp;utm_campaign=Badge_Grade)\n[![swiftpackageindex swift versions](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswiftui-packages%2Fimage-picker-module%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/swiftui-packages/image-picker-module)\n[![swiftpackageindex platforms](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fswiftui-packages%2Fimage-picker-module%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/swiftui-packages/image-picker-module)\n\n## Usage\nYou have 3 options to make use of the Image Picker Module in your SwiftUI project:\n\n1.  Use plain ImagePicker which has the parameters soruce type and a completion function, which returns the selected picture or taken photo\n2.  Use the ImagePickerButton which takes a binding of an optional UIImage and lets you define a label for the button. The Button itself comes with some functionality, which will be expanded in the future. For example does it detect if a photo was taken and shows you the option to remove it or show it in full screen.\n3.  Use the ImagesPickerButton, which is supposed to expand image collections and there for takes a UIImage Array Binding and again lets you set its label.\n\n\u003cbr\u003e\n\n## Integration\n1.  Copy the resource url:\n```\nhttps://github.com/swiftui-packages/image-picker-module.git\n```\n\n2.  Open your Xcode project\n\n3.  Two options a and b for step 3\u003cbr\u003e\n    a) \u0026nbsp; At the menu bar navigate to _File_ / _Swift Packages_ / _Add Package Dependency_\u003cbr\u003e\n    b1)  Select the project's root folder\u003cbr\u003e\n    b2)  select your app name under _PROJECT_\u003cbr\u003e\n    b3)  Open _Swift Packages_ tab on the right side of _Info_ and _Build Settings_\u003cbr\u003e\n    b4)  Hit the _+_ button at the bottom of the list\u003cbr\u003e\n\n4.  Here you should be prompted to \"_Choose Package Repository:_\"\n\n5.  Paste the resource url\n\n6.  Select _Next_ to go with the latest version or select a specific version or branch\n\n7.  After a short loading period of package resolution you get prompted to _Choose package products and targets_ (the default should be fine)\n\n8.  The complete hit the _Finish_ button\n\n9.  Import ImagePickerModule into the files where you want to use it\n\n\u003cbr\u003e\n\n## required info.plist entries\n-   _Privacy - Camera Usage Description_\n\n\u003cbr\u003e\n\n## Can also be found here\n-   [Swift Package Registry](https://swiftpackageregistry.com/swiftui-packages/image-picker-module)\n-   [Swift Package Index](https://swiftpackageindex.com/swiftui-packages/image-picker-module)\n-   [Swift Pack](https://swiftpack.co/package/swiftui-packages/image-picker-module)\n\n\u003cbr\u003e\n\n## ToDos\n-   maintaining README.md file\n    -   GIF of importing Swift Package Manager Packages into Xcode Projects\n    -   phrasing an introduction text\n    -   writing usage instructions with code examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-packages%2Fimage-picker-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftui-packages%2Fimage-picker-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftui-packages%2Fimage-picker-module/lists"}