Documentation Archive Developer
Search

Photos Changes for Swift

Photos

Protocols
FromAnyObject
To--

Modified PHAsset
Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Declaration
From
struct PHAssetMediaSubtype : OptionSetType {
    init(rawValue rawValue: UInt)
    static var None: PHAssetMediaSubtype { get }
    static var PhotoPanorama: PHAssetMediaSubtype { get }
    static var PhotoHDR: PHAssetMediaSubtype { get }
    static var PhotoScreenshot: PHAssetMediaSubtype { get }
    static var VideoStreamed: PHAssetMediaSubtype { get }
    static var VideoHighFrameRate: PHAssetMediaSubtype { get }
    static var VideoTimelapse: PHAssetMediaSubtype { get }
}
To
struct PHAssetMediaSubtype : OptionSetType {
    init(rawValue rawValue: UInt)
    static var None: PHAssetMediaSubtype { get }
    static var PhotoPanorama: PHAssetMediaSubtype { get }
    static var PhotoHDR: PHAssetMediaSubtype { get }
    static var PhotoScreenshot: PHAssetMediaSubtype { get }
    static var PhotoLive: PHAssetMediaSubtype { get }
    static var VideoStreamed: PHAssetMediaSubtype { get }
    static var VideoHighFrameRate: PHAssetMediaSubtype { get }
    static var VideoTimelapse: PHAssetMediaSubtype { get }
}

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class PHAssetResource : NSObject {
    var type: PHAssetResourceType { get }
    var assetLocalIdentifier: String { get }
    var uniformTypeIdentifier: String { get }
    var originalFilename: String { get }
    class func assetResourcesForAsset(_ asset: PHAsset) -> [PHAssetResource]
}
AnyObject
To
class PHAssetResource : NSObject {
    var type: PHAssetResourceType { get }
    var assetLocalIdentifier: String { get }
    var uniformTypeIdentifier: String { get }
    var originalFilename: String { get }
    class func assetResourcesForAsset(_ asset: PHAsset) -> [PHAssetResource]
    class func assetResourcesForLivePhoto(_ livePhoto: PHLivePhoto) -> [PHAssetResource]
}
--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSCopying
ToNSCopying

DeclarationProtocols
From
enum PHAssetResourceType : Int {
    case Photo
    case Video
    case Audio
    case AlternatePhoto
    case FullSizePhoto
    case FullSizeVideo
    case AdjustmentData
    case AdjustmentBasePhoto
}
Equatable, Hashable, RawRepresentable
To
enum PHAssetResourceType : Int {
    case Photo
    case Video
    case Audio
    case AlternatePhoto
    case FullSizePhoto
    case FullSizeVideo
    case AdjustmentData
    case AdjustmentBasePhoto
    case PairedVideo
}
--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Modified PHChange
Protocols
FromAnyObject
To--

Modified PHCollection
Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Modified PHFetchResult
Protocols
FromAnyObject, NSCopying, NSFastEnumeration
ToNSCopying, NSFastEnumeration

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

DeclarationProtocols
From
class PHImageManager : NSObject {
    class func defaultManager() -> PHImageManager
    func requestImageForAsset(_ asset: PHAsset, targetSize targetSize: CGSize, contentMode contentMode: PHImageContentMode, options options: PHImageRequestOptions?, resultHandler resultHandler: (UIImage?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestImageDataForAsset(_ asset: PHAsset, options options: PHImageRequestOptions?, resultHandler resultHandler: (NSData?, String?, UIImageOrientation, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func cancelImageRequest(_ requestID: PHImageRequestID)
    func requestPlayerItemForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, resultHandler resultHandler: (AVPlayerItem?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestExportSessionForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, exportPreset exportPreset: String, resultHandler resultHandler: (AVAssetExportSession?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestAVAssetForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, resultHandler resultHandler: (AVAsset?, AVAudioMix?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
}
AnyObject
To
class PHImageManager : NSObject {
    class func defaultManager() -> PHImageManager
    func requestImageForAsset(_ asset: PHAsset, targetSize targetSize: CGSize, contentMode contentMode: PHImageContentMode, options options: PHImageRequestOptions?, resultHandler resultHandler: (UIImage?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestImageDataForAsset(_ asset: PHAsset, options options: PHImageRequestOptions?, resultHandler resultHandler: (NSData?, String?, UIImageOrientation, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func cancelImageRequest(_ requestID: PHImageRequestID)
    func requestLivePhotoForAsset(_ asset: PHAsset, targetSize targetSize: CGSize, contentMode contentMode: PHImageContentMode, options options: PHLivePhotoRequestOptions?, resultHandler resultHandler: (PHLivePhoto?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestPlayerItemForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, resultHandler resultHandler: (AVPlayerItem?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestExportSessionForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, exportPreset exportPreset: String, resultHandler resultHandler: (AVAssetExportSession?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
    func requestAVAssetForVideo(_ asset: PHAsset, options options: PHVideoRequestOptions?, resultHandler resultHandler: (AVAsset?, AVAudioMix?, [NSObject : AnyObject]?) -> Void) -> PHImageRequestID
}
--

Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Modified PHObject
Protocols
FromAnyObject, NSCopying
ToNSCopying

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromAnyObject
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--

Protocols
FromEquatable, Hashable, RawRepresentable
To--