Documentation Archive Developer
Search

AssetsLibrary Changes for Swift

AssetsLibrary

Modified ALAsset
Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecationRaw Value Type
FromiOS 8.1----
ToiOS 4.0iOS 9.0Int

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Modified ALAssetsGroup
Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

DeclarationDeprecation
From
class ALAssetsLibrary : NSObject {
    func enumerateGroupsWithTypes(_ types: ALAssetsGroupType, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func assetForURL(_ assetURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryAssetForURLResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func groupForURL(_ groupURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func addAssetsGroupAlbumWithName(_ name: String!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, orientation orientation: ALAssetOrientation, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeImageDataToSavedPhotosAlbum(_ imageData: NSData!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeVideoAtPathToSavedPhotosAlbum(_ videoPathURL: NSURL!, completionBlock completionBlock: ALAssetsLibraryWriteVideoCompletionBlock!)
    func videoAtPathIsCompatibleWithSavedPhotosAlbum(_ videoPathURL: NSURL!) -> Bool
    class func authorizationStatus() -> ALAuthorizationStatus
    class func disableSharedPhotoStreamsSupport()
}
extension ALAssetsLibrary {
    func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
extension ALAssetsLibrary {
    func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
--
To
class ALAssetsLibrary : NSObject {
    func enumerateGroupsWithTypes(_ types: ALAssetsGroupType, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func assetForURL(_ assetURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryAssetForURLResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func groupForURL(_ groupURL: NSURL!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func addAssetsGroupAlbumWithName(_ name: String!, resultBlock resultBlock: ALAssetsLibraryGroupResultBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
    func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, orientation orientation: ALAssetOrientation, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeImageToSavedPhotosAlbum(_ imageRef: CGImage!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeImageDataToSavedPhotosAlbum(_ imageData: NSData!, metadata metadata: [NSObject : AnyObject]!, completionBlock completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)
    func writeVideoAtPathToSavedPhotosAlbum(_ videoPathURL: NSURL!, completionBlock completionBlock: ALAssetsLibraryWriteVideoCompletionBlock!)
    func videoAtPathIsCompatibleWithSavedPhotosAlbum(_ videoPathURL: NSURL!) -> Bool
    class func authorizationStatus() -> ALAuthorizationStatus
    class func disableSharedPhotoStreamsSupport()
}
extension ALAssetsLibrary {
    @nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
extension ALAssetsLibrary {
    @nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
}
iOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Modified ALAssetsLibrary.enumerateGroupsWithTypes(_: UInt32, usingBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock: ALAssetsLibraryAccessFailureBlock!)
DeclarationIntroduction
From
func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
iOS 8.1
To
@nonobjc func enumerateGroupsWithTypes(_ types: UInt32, usingBlock enumerationBlock: ALAssetsLibraryGroupsEnumerationResultsBlock!, failureBlock failureBlock: ALAssetsLibraryAccessFailureBlock!)
iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 5.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

DeprecationRaw Value Type
From----
ToiOS 9.0Int

IntroductionDeprecation
FromiOS 8.0--
ToiOS 6.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 6.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 6.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 6.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 6.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 5.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

IntroductionDeprecation
FromiOS 8.0--
ToiOS 4.0iOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0

Deprecation
From--
ToiOS 9.0