Skip to content

Photos tvOS xcode26.0 b1

Alex Soto edited this page Jun 9, 2025 · 1 revision

#Photos.framework

diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h	2025-04-19 04:23:15
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h	2025-05-30 07:32:00
@@ -13,7 +13,7 @@
 #import <ImageIO/ImageIO.h>
 #import <CoreLocation/CLLocation.h>
 
-
+@class UTType;
 @class PHFetchOptions;
 @class PHAssetCollection;
 
@@ -32,11 +32,20 @@
 @property (nonatomic, assign, readonly) PHAssetMediaType mediaType;
 @property (nonatomic, assign, readonly) PHAssetMediaSubtype mediaSubtypes;
 
+/// The type of image or video data that is presented for the asset
+@property (nonatomic, copy, readonly) UTType *contentType API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0));
+
 @property (nonatomic, assign, readonly) NSUInteger pixelWidth;
 @property (nonatomic, assign, readonly) NSUInteger pixelHeight;
 
+/// The date and time of this asset's creation (can be updated by the user)
 @property (nonatomic, strong, readonly, nullable) NSDate *creationDate;
+
+/// The date and time of the last modification to this asset or one of its properties
 @property (nonatomic, strong, readonly, nullable) NSDate *modificationDate;
+
+/// The date and time this asset was added to the photo library (from the device that was used to add this asset)
+@property (nonatomic, strong, readonly) NSDate *addedDate API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0));
 
 @property (nonatomic, strong, readonly, nullable) CLLocation *location;
 
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h	2025-04-19 04:57:05
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h	2025-06-02 23:15:12
@@ -19,8 +19,9 @@
 // The filename for the resource. If not specified, one will be inferred from a fileURL if available, or else generated.
 @property (nonatomic, copy, nullable) NSString *originalFilename;
 
-// The uniform type identifier for the resource. If not specified, one will be inferred from the PHAssetResourceType.
-@property (nonatomic, copy, nullable) NSString *uniformTypeIdentifier;
+/// The type of data being provided for this asset resource. If not specified, one will be inferred from the PHAssetResourceType or file URL extension (if provided).
+@property (nonatomic, copy, nullable) UTType *contentType API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0));
+@property (nonatomic, copy, nullable) NSString *uniformTypeIdentifier API_DEPRECATED("Use contentType instead", ios(9, API_TO_BE_DEPRECATED), macos(10.15, API_TO_BE_DEPRECATED), tvos(10, API_TO_BE_DEPRECATED), visionos(1, API_TO_BE_DEPRECATED));
 
 // When enabled, the file passed to the creation request will be moved into the photo library without duplicating the file data (the original file is removed if the asset is created successfully), otherwise a copy of the file is created from the original. Defaults to NO.  Attempting to move a file that is open or hardlinked will fail.
 @property (nonatomic, assign) BOOL shouldMoveFile;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h	2025-04-19 04:57:05
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h	2025-06-02 23:15:12
@@ -9,6 +9,7 @@
 
 @class PHAsset;
 @class PHLivePhoto;
+@class UTType;
 
 NS_ASSUME_NONNULL_BEGIN
 API_AVAILABLE_BEGIN(macos(10.15), ios(9), tvos(10))
@@ -18,8 +19,11 @@
 
 @property (nonatomic, assign, readonly) PHAssetResourceType type;
 @property (nonatomic, copy, readonly) NSString *assetLocalIdentifier;
-@property (nonatomic, copy, readonly) NSString *uniformTypeIdentifier;
 @property (nonatomic, copy, readonly) NSString *originalFilename;
+
+/// The type of data associated with this asset resource (the data can be retrieved via PHAssetResourceManager)
+@property (nonatomic, copy, readonly) UTType *contentType API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0));
+@property (nonatomic, copy, readonly) NSString *uniformTypeIdentifier API_DEPRECATED("Use contentType instead", ios(9, API_TO_BE_DEPRECATED), macos(10.15, API_TO_BE_DEPRECATED), tvos(10, API_TO_BE_DEPRECATED), visionos(1, API_TO_BE_DEPRECATED));
 
 @property (nonatomic, assign, readonly) NSInteger pixelWidth API_AVAILABLE(macos(13), ios(16), tvos(16));
 @property (nonatomic, assign, readonly) NSInteger pixelHeight API_AVAILABLE(macos(13), ios(16), tvos(16));
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h	2025-04-19 04:57:04
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h	2025-06-02 23:15:11
@@ -30,6 +30,7 @@
 
 
 OS_EXPORT
+NS_SWIFT_SENDABLE
 @interface PHAssetResourceManager : NSObject
 
 + (PHAssetResourceManager *)defaultManager;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h	2025-04-19 04:57:04
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h	2025-06-02 23:15:12
@@ -12,6 +12,7 @@
 @class AVAsset;
 @class CLLocation;
 @class PHLivePhoto;
+@class UTType;
 @class UIImage;
 
 NS_ASSUME_NONNULL_BEGIN
@@ -24,7 +25,10 @@
 @property (readonly, assign) PHAssetMediaSubtype mediaSubtypes;
 @property (readonly, copy, nullable) NSDate *creationDate;
 @property (readonly, copy, nullable) CLLocation *location;
-@property (readonly, copy, nullable) NSString *uniformTypeIdentifier;
+
+/// The type of data provided as the asset's content editing input image or video.
+@property (readonly, copy, nullable) UTType *contentType API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), visionos(26.0));
+@property (readonly, copy, nullable) NSString *uniformTypeIdentifier API_DEPRECATED("Use contentType instead", ios(8, API_TO_BE_DEPRECATED), macos(10.11, API_TO_BE_DEPRECATED), tvos(10, API_TO_BE_DEPRECATED), visionos(1, API_TO_BE_DEPRECATED));
 
 // Playback style describes how the content should be presented to the user.  Use this value to choose the type of view and the appropriate APIs on the content editing input to display this content.
 // When editing a live photo with a PHAssetPlaybackStyleLoopingVideo, you should provide an updated video that includes the looping video metadata on the PHContentEditingOutput's renderedContentURL.
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h	2025-04-19 08:15:43
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h	2025-06-02 23:15:12
@@ -129,6 +129,7 @@
 
 // Note that all sizes are in pixels
 OS_EXPORT
+NS_SWIFT_SENDABLE
 @interface PHImageManager : NSObject
 
 + (PHImageManager *)defaultManager;
@@ -201,10 +202,10 @@
 #pragma mark - PHCachingImageManager - Preheating
 
 OS_EXPORT
+NS_SWIFT_SENDABLE
 @interface PHCachingImageManager : PHImageManager
 
-// During fast scrolling clients should set this to improve responsiveness
-@property (nonatomic, assign) BOOL allowsCachingHighQualityImages; // Defaults to YES
+@property (nonatomic, assign) BOOL allowsCachingHighQualityImages API_DEPRECATED("This property is unused and will be removed in a future release", ios(8, 26.0), tvos(10, 26.0), macos(10.15, 26.0), visionos(1, 26.0));
 
 // Asynchronous image preheating (aka caching), note that only image sources are cached (no crop or exact resize is ever done on them at the time of caching, only at the time of delivery when applicable).
 // The options values shall exactly match the options values used in loading methods. If two or more caching requests are done on the same asset using different options or different targetSize the first
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h	2025-04-19 04:57:04
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h	2025-06-02 23:15:11
@@ -22,6 +22,7 @@
 
 
 OS_EXPORT API_AVAILABLE(macos(10.12))
+NS_SWIFT_SENDABLE
 @interface PHLivePhoto : NSObject <NSCopying, NSSecureCoding>
 
 - (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h	2025-04-19 04:08:15
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h	2025-05-30 07:28:35
@@ -11,6 +11,7 @@
 #import <Foundation/Foundation.h>
 
 
+
 API_AVAILABLE_BEGIN(macos(10.11), ios(8), tvos(10))
 
 #pragma mark - PHCollectionListTypes
@@ -81,6 +82,7 @@
     // PHAssetCollectionTypeAlbum shared subtypes
     PHAssetCollectionSubtypeAlbumMyPhotoStream   = 100,
     PHAssetCollectionSubtypeAlbumCloudShared     = 101,
+
     
     // PHAssetCollectionTypeSmartAlbum subtypes
     PHAssetCollectionSubtypeSmartAlbumGeneric    = 200,
@@ -103,8 +105,8 @@
     PHAssetCollectionSubtypeSmartAlbumRAW API_AVAILABLE(macos(12), ios(15), tvos(15)) = 217,
     PHAssetCollectionSubtypeSmartAlbumCinematic API_AVAILABLE(macos(12), ios(15), tvos(15)) = 218,
     PHAssetCollectionSubtypeSmartAlbumSpatial API_AVAILABLE(macos(15), ios(18), tvos(18)) = 219,
+    PHAssetCollectionSubtypeSmartAlbumScreenRecordings API_AVAILABLE(macos(11), ios(14), tvos(14)) = 220,
 
-
     
     // Used for fetching, if you don't care about the exact subtype
     PHAssetCollectionSubtypeAny = NSIntegerMax
@@ -151,6 +153,7 @@
     PHAssetMediaSubtypeVideoStreamed      = (1UL << 16),
     PHAssetMediaSubtypeVideoHighFrameRate = (1UL << 17),
     PHAssetMediaSubtypeVideoTimelapse     = (1UL << 18),
+    PHAssetMediaSubtypeVideoScreenRecording API_AVAILABLE(macos(10.15), ios(13), tvos(13)) = (1UL << 19),
     PHAssetMediaSubtypeVideoCinematic API_AVAILABLE(macos(12), ios(15), tvos(15)) = (1UL << 21),
 };
 
Clone this wiki locally