Latest 0.2
License MIT
Platforms ios 8.0, requires ARC
Frameworks Photos

A better choice for picking photos, replacement of UIImagePickerController.


Compared to UIImagePickerController, DDPhotoPicker keeps picking photo from the library simple and elegent.

  • the framework is based on modern Photos framework, PHAsset allows user to get more asset metadata.
  • support cropping image with certain ratio and moving the cropping center
  • provide generic UI and smooth animation for picking.

How to install

use cocoapods

platform :ios, '8.0'
pod 'DDPhotoPicker'

How to use:

Declare a photoPicker and set its photoDelegate

import DDPhotoPicker
import Photos
// Pick and crop with ratio 1:2
let photoPicker = DDPhotoPicker(cropRatio: 1.0 / 2.0)
// or Pick without cropping
// let photoPicker = DDPhotoPicker(cropRatio: nil)

photoPicker.photoDelegate = self
self.presentViewController(photoPicker, animated: true, completion: nil)

Use DDPhotoPickerDelegate to receieve news

func photoPickerCancelPicking() {

func photoPickerGetImage(image: UIImage, originalAsset asset: PHAsset) {


Latest podspec

    "name": "DDPhotoPicker",
    "version": "0.2",
    "summary": "A better choice for picking photos",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "u95fbu7aefCarl": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "0.2"
    "source_files": "DDPhotoPicker/*.swift",
    "frameworks": "Photos",
    "requires_arc": true

Pin It on Pinterest

Share This