The following classes are available globally.
The imgae loader to load image asset from Photos library. You need to register the loader into manager firstly. Use
@import SDWebImagePhotosPluginto import full framework instead of each header.
NoteTo control single image request options, use the context option in
NSURL+SDWebImagePhotosPlugin.hcategory to create Photos URL instead of string. Use
PHImageRequestOptions+SDWebImagePhotosPlugin.hcategory to provide extra info for request options.
NoteAnd it’s also strongly recommeded to totally disable memory cache if you want to query batch of Photos images frequently. You can do this by using
SDWebImageFromLoaderOnlyoptions during image request. And you can use
SDImageCacheTypeNoneto disable cache storing. This is because Photos framework manage the image cache by their own process outside your application process and can reduce memory usage.
@interface SDImagePhotosLoader : NSObject
class SDImagePhotosLoader : NSObject