Relative Content

Tag Archive for swiftfileswiftuisavephphotolibrary

How to save created gif to photos? (Only works first time right now)

In my animation app, I want to save the animation as a gif to the photos app. Right now, the code I have successfully saves it to photos the first time, but after that it generates an error (PHPhotosErrorDomain error -1.) The generateGifFromImages function seems to work because I can find all the gif files in the destination folder, but (besides the first time I do it) they just aren’t saving to photos.