Giter VIP home page Giter VIP logo

sagarsdagdu / sdphotoshelper Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 84 KB

A light-weight helper class which helps add and retrieve images and videos to / from a custom album in Photos. It uses the PHPhotoLibrary provided by Apple and is written in Swift 3 with ❤️

License: MIT License

Swift 95.38% Ruby 4.62%
custom-album customalbum image images ios-lib ios-swift photos phphotolibrary phphotos swift-3 swift-library video videos

sdphotoshelper's Introduction

iOS Developer at Fairmatic. Previously contributed to the awesome iOS Chat SDK developed at Stream. Also worked as a Senior iOS SDK developer at Helpshift contributing to their support SDK which is installed on more than ~2B devices. Worked as an iOS developer at athenahealth

Twitter: Sagar Dagdu Linkedin: Sagar Dagdu GitHub SagarSDagdu
profile for Sagar D at Stack Overflow, Q&A for professional and enthusiast programmers

A little more about me...

let sagar = Developer()
sagar.pronouns = [.he, .him]
sagar.country = Countries.India //🇮🇳
sagar.codingLanguages += ["Swift", "Objective C", "Java"]
sagar.experiences = ["iOS", "Android"]
sagar.setInterestAreas(areas: ["clean-code", "design-patterns", 
                               "architectures", "programming-paradigms"])
sagar.education = Masters(specialization: "Computer Science")
sagar.hobbies = ["open-source 💻", "reading 📚", "riding 🏍", "movies 🍿"]
sagar.currentlyExploring = { _ in
  return ["SwiftUI", "Functional Programming"]
}

Sagar's github stats

I love connecting with people so if you want to say hi, just reach out to me on Twitter, I'll be more than happy to chat!

sdphotoshelper's People

Contributors

cristinaitdeveloper avatar sagarsdagdu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sdphotoshelper's Issues

save .dng files

Hi, is there a way sdphotoshelper can save .dng files too?

Adding a new Video is not working

Hello Sagar!

You have created a wonderful library that helped me to create a custom album and save photo to it.

Console: Created album : SDPhotosHelper

However, I also need to save the video in my app and I tried the save video function provided by the lib.

SDPhotosHelper.addNewVideo(withFileUrl: URL(string: "https://accidentvideopost.s3.us-east-2.amazonaws.com/e19638b5-bc26-39a7-9ef2-fae793eea183_25112019_111111.mp4")!, inAlbum: self.albumName, onSuccess: { (success) in
                print("Saved a video successfully.")
            }) { (error) in
                if let error = error {
                    print("Error in creating album : \(error.localizedDescription)")
                }
            }

And It is throwing this error: :(

Console: Error in creating album : The operation couldn’t be completed. (Cocoa error -1.)

Could you please look into it and help me? Thanks mate!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.