Currently, I have that piece of code:
import Photos
public class AssetService : NSObject, PHPhotoLibraryChangeObserver {
public override init() {
super.init()
PHPhotoLibrary.sharedPhotoLibrary().registerChangeObserver(self)
}
deinit {
PHPhotoLibrary.sharedPhotoLibrary().unregisterChangeObserver(self)
}
public func photoLibraryDidChange(changeInstance: PHChange) {
dispatch_async(dispatch_get_main_queue(), {
})
}
}
What could I do in the photoLibraryDidChange
function if I want to check updates in my camera roll. I fetch all images/video at the beginning into a PHFetchResult and now I want to monitor the changes.
I display the images/video in a UIView always in fullscreen and use a UIPageControl to scroll through the content. Would be thankful for any help