PHImageRequestOptions(SDWebImagePhotosPlugin)

@interface PHImageRequestOptions (SDWebImagePhotosPlugin)

PHImageRequestOptions category to provide targetSize and contentMode when fetch Photos image asset

  • The targetSize value for image asset request. Defaults to SDWebImagePhotosPixelSize.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGSize sd_targetSize;

    Swift

    var sd_targetSize: CGSize { get set }
  • The contentMode value for image asset request. Defaults to PHImageContentModeDefault.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) PHImageContentMode sd_contentMode;

    Swift

    var sd_contentMode: PHImageContentMode { get set }