Latest 0.1.0
Homepage https://github.com/tdermaris/PhotoLibraryManager
License MIT
Platforms ios 10.0
Frameworks UIKit, Photos
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 10 and above.

Installation

PhotoLibraryManager is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'PhotoLibraryManager'

API

import PhotoLibraryManager

let photoManager = PhotoLibraryManager()

use the below functions on photoManager to get the functionality that you want

Documentation

PhotoLibraryManager provides the following public methods:

- checkAuthorisationStatus(vc: UIViewController?, completion: @escaping ((Bool) -> Void))
    Returns a boolean value indicating whether we have access to photoLibrary 
- containsAlbum(albumName: String) -> Bool
    Returns a boolean value indicating whether photo library contains a specific album 
- makeAlbum(albumName: String)
    Makes a specific album in photo library
- savePhotoToAlbum(albumName: String, photo:UIImage, completion: ((_ identifier: String?, _ error: Error?) -> Void)?)
    Returns the saved image identifier and error
- getPhoto(with identifier: String, mode: PHImageRequestOptionsDeliveryMode) -> UIImage?
    Returns a photo with the specific identifier
- containsPhoto(identifier: String) -> Bool
    Returns a boolean value indicating whether the photo exists in photo library
- deletePhoto(identifier: String)
    Deleting the photo with the specific identifier

Author

tdermaris, [email protected]

License

PhotoLibraryManager is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "PhotoLibraryManager",
    "version": "0.1.0",
    "summary": "A manager for asking permission and execute several actions in iOS Photo Library.",
    "description": "With PhotoLibraryManager you can ask for user permission to access photo library. If you gain access you get some great features including checking if an album already exists, making a new album with your custom name, save a photo to your album, check if a photo exists, get a photo with specific identifier, delete a photo etc. If the user denied access, an alert window can lead him to app settings in order to change permission if he wants to.",
    "homepage": "https://github.com/tdermaris/PhotoLibraryManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tdermaris": "[email protected]"
    },
    "source": {
        "git": "https://github.com/tdermaris/PhotoLibraryManager.git",
        "tag": "0.1.0"
    },
    "swift_version": "4.1",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "PhotoLibraryManager/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Photos"
    ]
}

Pin It on Pinterest

Share This