-
Notifications
You must be signed in to change notification settings - Fork 571
PhotosUI tvOS xcode27.0 b1
Alex Soto edited this page Jun 9, 2026
·
1 revision
#PhotosUI.framework
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h 2026-04-18 23:56:13
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h 2026-05-30 22:31:19
@@ -66,14 +66,37 @@
PHPickerCapabilitiesSensitivityAnalysisIntervention = 1 << 4,
} API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos, tvos);
+/// Constants that specify metadata options for \c PHPickerViewController.
+typedef NS_OPTIONS(NSUInteger, PHPickerMetadataOptions) {
+ /// No metadata options.
+ PHPickerMetadataOptionsNone = 0,
+ /// Remove location metadata.
+ PHPickerMetadataOptionsRemoveLocation = 1 << 0,
+ /// Remove captions metadata.
+ PHPickerMetadataOptionsRemoveCaptions = 1 << 1,
+} API_AVAILABLE(ios(27), macos(27), visionos(27)) API_UNAVAILABLE(watchos, tvos);
+
NS_ASSUME_NONNULL_END
API_AVAILABLE_BEGIN(ios(14), macos(13))
API_UNAVAILABLE_BEGIN(tvos, watchos)
NS_ASSUME_NONNULL_BEGIN
+/// A search text for \c PHPickerViewController.
+OS_EXPORT
+NS_REFINED_FOR_SWIFT
+API_AVAILABLE(ios(27), macos(27), visionos(27))
+API_UNAVAILABLE(watchos)
+@interface PHPickerSearchText : NSObject <NSCopying>
+
+/// Creates a search text from a string.
+- (instancetype)initWithString:(NSString *)string API_AVAILABLE(ios(27), macos(27), visionos(27));
+
+- (instancetype)init NS_UNAVAILABLE;
+
+@end
+
/// A filter that restricts which types of assets \c PHPickerViewController can show.
-__attribute__((objc_subclassing_restricted))
OS_EXPORT
NS_REFINED_FOR_SWIFT
API_UNAVAILABLE(watchos)
@@ -127,13 +150,11 @@
/// Returns a new filter formed by negating the given filter.
+ (PHPickerFilter *)notFilterOfSubfilter:(PHPickerFilter *)subfilter API_AVAILABLE(ios(15));
-+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
@end
/// An update configuration for \c PHPickerViewController.
-__attribute__((objc_subclassing_restricted))
OS_EXPORT
NS_REFINED_FOR_SWIFT
API_AVAILABLE(ios(17), macos(14))
@@ -145,10 +166,12 @@
/// Edges of the picker that have no margin between the content and the edge (e.g. without bars in between).
@property (nonatomic) NSDirectionalRectEdge edgesWithoutContentMargins API_AVAILABLE(ios(17), macos(14));
+/// The search text for the picker.
+@property (nonatomic, copy, nullable) PHPickerSearchText *searchText API_AVAILABLE(ios(27), macos(27), visionos(27));
+
@end
/// A configuration for \c PHPickerViewController.
-__attribute__((objc_subclassing_restricted))
OS_EXPORT
NS_REFINED_FOR_SWIFT
API_UNAVAILABLE(watchos)
@@ -182,6 +205,12 @@
/// Capabilities of the picker that should be disabled. Default is \c PHPickerCapabilitiesNone.
@property (nonatomic) PHPickerCapabilities disabledCapabilities API_AVAILABLE(ios(17), macos(14));
+/// Metadata options for the picker. Default is \c PHPickerMetadataOptionsNone.
+@property (nonatomic) PHPickerMetadataOptions metadataOptions API_AVAILABLE(ios(27), macos(27), visionos(27));
+
+/// The search text for the picker. Default is \c nil.
+@property (nonatomic, copy, nullable) PHPickerSearchText *searchText API_AVAILABLE(ios(27), macos(27), visionos(27));
+
/// Initializes a new configuration with the \c photoLibrary the picker should use.
- (instancetype)initWithPhotoLibrary:(PHPhotoLibrary *)photoLibrary API_UNAVAILABLE(watchos);
@@ -191,7 +220,6 @@
@end
/// A user selected asset from \c PHPickerViewController.
-__attribute__((objc_subclassing_restricted))
OS_EXPORT
NS_REFINED_FOR_SWIFT
API_UNAVAILABLE(watchos)
@@ -203,7 +231,6 @@
/// The local identifier of the selected asset.
@property (nonatomic, readonly, nullable) NSString *assetIdentifier API_UNAVAILABLE(watchos);
-+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
@end
@@ -225,7 +252,6 @@
/// A picker that manages the system interfaces for choosing assets from the user's photo library and delivers the results of those interactions to a delegate.
/// @discussion The picker is intended to be used as-is and does not support subclassing. It is out-of-process, so photo library access authorization is not needed. The view hierarchy for the picker is private and must not be modified.
-__attribute__((objc_subclassing_restricted))
OS_EXPORT
API_UNAVAILABLE(watchos)
#if __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
@@ -265,7 +291,6 @@
/// Zooms out content if possible.
- (void)zoomOut API_AVAILABLE(ios(17), macos(14));
-+ (instancetype)new NS_UNAVAILABLE;
- (instancetype)init NS_UNAVAILABLE;
#if __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h
--- /Applications/Xcode_26.5.0.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h 2026-04-18 21:09:41
+++ /Applications/Xcode_27.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h 2026-05-30 22:46:34
@@ -20,10 +20,10 @@
#if TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_VISION
#import <PhotosUI/PHContentEditingController.h>
-#endif
-
-#if TARGET_OS_IOS || TARGET_OS_VISION
#import <PhotosUI/PHPhotoLibrary+PhotosUISupport.h>
+#import <PhotosUI/PHSharedAlbumCreationViewController.h>
+#import <PhotosUI/PHSharedAlbumCustomizationViewController.h>
+#import <PhotosUI/PHSharedAlbumPostingViewController.h>
#endif
#if TARGET_OS_OSX