{"repo":"exyte/MediaPicker","free":true,"listed":false,"github":"https://github.com/exyte/MediaPicker","clone":"git clone https://github.com/exyte/MediaPicker.git","description":"Customizable media picker written with SwiftUI","language":"Swift","stars":485,"topics":["ios","photo-picker","swiftui","photo-gallery","swiftui-components"],"license":"MIT","category":"mobile-apps","readme_excerpt":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Media Picker SwiftUI library for a customizable media picker. Features Photo and video picker Single and multiple selection Full-screen view Live photo preview & capture Full customization MediaPicker vs PhotosPicker The iOS 16 PhotosPicker only provides you with a button, while this library gives you the whole view, meaning you can build it into you own screens and customize it as you see fit. PhotosPicker only lets you pick photos from the library - no camera. MediaPicker provides a default looking library picker, with ability to manage albums, and also a camera view to take photos/video !SPM Renaming! SPM package is now called ExyteMediaPicker instead of MediaPicker , sorry for any inconveniences. Usage 1. Add a binding Bool to control the picker presentation state. 2. Add Media array to save selection ( [Media] ). 3. Initialize the media picker and present it however you like - for example, using the .sheet modifier Media model The lbrary will return an array of Media structs for you to use as you see fit. It has the following fields and methods (all the methods use async/await API): - type - .image or .video - duration - nil for .image - getURL() - returns URL to media (automatically stores in temporary directory if needed) - getThumbnailURL() - returns URL to media's thumbnail (for image just returns the image itself) - getData() - returns media's Data representation - getThumbnailData() - returns media's thumbnail Data representation Mode","default_branch":null,"files":null,"tree":[],"storefront":"/r/exyte","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/exyte/MediaPicker/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}