Use `PreselectedPhotoViewController` to handle limited photo access case in your app.

Overview

PreselectedPhotoUI

Use PreselectedPhotoViewController to handle limited photo access case in your app.

Overview

Supports

  • iOS 14.0 or later

How to use?

IMPORTANT

Don't forget to add Privacy - Photo Library Usage Description to info.plist

let vc = PreselectedPhotoViewController()
vc.delegate = self
let nav = UINavigationController(rootViewController: vc)

present(nav, animated: true, completion: nil)
  1. Conform to PreselectedPhotoViewDelegate.
// ViewController.swift
class ViewController: UIViewController, PreselectedPhotoViewDelegate { 
    func didTapSendImageData(_ data: Data) {
        // process image data
    }
    
    func didTapSendVideoURL(_ url: URL) {
        // process video url
    }
}
  1. Ready to show PreselectedPhotoViewController
// ViewController.swift
func showLimitedPhotoLibraryPicker() {
    PreselectedPhotoViewController.StringSet.viewLibrary = "{your_own_title}"
    let selectablePhotoVC = PreselectedPhotoViewController()
    selectablePhotoVC.delegate = self
    let nav = UINavigationController(rootViewController: selectablePhotoVC)
    self.present(nav, animated: true, completion: nil)
}
  1. Connect showLimitedPhotoLibraryPicker() method to your button action
// ViewController.swift
@IBAction func didTapPhotoSelection() {
    showLimitedPhotoLibraryPicker()
}
You might also like...
Turn a photo of your food into a face
Turn a photo of your food into a face

Megabite Megabite is a mobile app that automatically turns a photo of your food into a face. Read more about it here. Installation This project uses C

Safely access Apple's SF Symbols using static typing
Safely access Apple's SF Symbols using static typing

Supported Versions • Motivation • Installation • Usage • Contributing • License • Issues • Pull Requests Supported Versions SFSafeSymbols supports mul

TripUp is an open source, photo storage and sharing app made for privacy conscious users.
TripUp is an open source, photo storage and sharing app made for privacy conscious users.

TripUp is an open source, photo storage and sharing app made for privacy conscious users.

Lightweight iOS Photo Blur App

Blurry Blurry is the go-to image blurring tool to help you apply beautiful blurs for your photos. It is perfect for creating wallpapers, backgrounds,

PixPic, a Photo Editing App
PixPic, a Photo Editing App

PixPic PixPic, a Photo Editing App Built by Our iOS Interns What's the best way to teach interns how to write an iOS app? Just let them do it! This ap

An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.
An image cropper / photo cropper for iOS like in the Contacts app with support for landscape orientation.

RSKImageCropper An image cropper for iOS like in the Contacts app with support for landscape orientation. Installation RSKImageCropper requires iOS 9.

Photo Gallery App demo using a REST API

Photo Gallery iOS App - (Using Rest API) A demo Photo Gallery App using a Rest API using MVVM architecture in Swift + UIKit. Overview Fully Programmat

Nasa photo from Mars app

NasaPhotoApp MVVM(Combine, Block, Async wait) This app compares 3 ways(Combine, Block, Async wait) to bring data from network layer to view. The appli

App that Displays the NASA Photo of Day
App that Displays the NASA Photo of Day

SpacePod We'll progressively build a small SwiftUI app that displays the NASA ph

Releases(1.0.0)
  • 1.0.0(Jun 13, 2022)

    🚀 Jun 14 (Tue)

    🎉 PreselectedPhotoUI has been released! Use PreselectedPhotoViewController to handle limited photo access case in your app.

    import PreselectedPhotoUI
    
    let vc = PreselectedPhotoViewController()
    vc.delegate = self
    let nav = UINavigationController(rootViewController: vc)
    
    present(nav, animated: true, completion: nil)
    
    
    Source code(tar.gz)
    Source code(zip)
Owner
Jaesung
🏅 WWDC19, WWDC20
Jaesung
DTPhotoViewerController - A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer.

DTPhotoViewerController Example Demo video: https://youtu.be/aTLx4M4zsKk DTPhotoViewerController is very simple to use, if you want to display only on

Tung Vo 277 Dec 17, 2022
Gallery has a clearer flow based on albums and focuses on the use case of selecting video

Description We all love image pickers, don't we? You may already know of ImagePicker, the all in one solution for capturing pictures and selecting ima

null 1 Sep 14, 2022
An iOS app that helps you check, edit and delete metadata of photos, including but not limited to EXIF, TIFF...

MetaX A simple iOS app that helps you check, edit and delete metadata of photos, including but not limited to EXIF, TIFF... Feature List main metadata

Yuhan Chen 189 Dec 29, 2022
Photo-Sharing-App - Photo Sharing App With Swift

Photo Sharing App You can register and log in to this application and share your

Yağız Savran 2 Jun 14, 2022
DGCropImage - A photo cropping tool which mimics Photo.app written by Swift

DGCropImage A photo cropping tool which mimics Photo.app written by Swift. This

donggyu 11 Jul 14, 2022
A photo gallery for iOS with a modern feature set. Similar features as the Facebook photo browser.

EBPhotoPages ”A photo gallery can become a pretty complex component of an app very quickly. The EBPhotoPages project demonstrates how a developer coul

Eddy Borja 1.7k Dec 8, 2022
React-native-photo-editor - Photo editor using native modules for iOS and Android

?? Image editor using native modules for iOS and Android. Inherit from 2 available libraries, ZLImageEditor (iOS) and PhotoEditor (Android)

Baron Ha. 244 Jan 5, 2023
Shows your photo library grouped by events, to easily export them to your computer

Groupir Shows your photo library grouped by events, to easily export them to your computer Features Currently supported features: reading your photo l

Stanislas Chevallier 0 Dec 15, 2021
An app show your Live Photo and export as GIF.

LivelyGIFs Show your Live Photo and export as GIF. Demo HighLights Do not use Pod or Cathage to install 3rd party library Simple logic, new learner fr

Xue Yu 95 Jun 24, 2022
PhotoEditor SDK: A fully customizable photo editor for your app.

About PhotoEditor SDK for iOS Our SDK provides tools for adding photo editing capabilities to your iOS application with a big variety of filters that

IMG.LY 116 Jan 1, 2023