peachsim 0.1.1830 → 0.1.1832
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +20 -9
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +3 -3
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +20 -9
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +2 -2
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +53 -53
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +20 -9
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +3 -3
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/resilient-frame-clock.d.ts +1 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAdjustmentData.h +28 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +129 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetChangeRequest.h +143 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCollection.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCollectionChangeRequest.h +60 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetCreationRequest.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetExtendedMetadata.h +33 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +67 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceManager.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJob.h +79 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJobChangeRequest.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResourceUploadJobOptions.h +23 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +91 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChangeRequest.h +12 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCloudIdentifier.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollection.h +68 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollectionList.h +59 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHCollectionListChangeRequest.h +95 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingInput.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHContentEditingOutput.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHError.h +56 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +48 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +43 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +251 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHLivePhoto.h +52 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHLivePhotoEditingContext.h +131 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChange.h +29 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChangeFetchResult.h +26 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentChangeToken.h +21 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPersistentObjectChangeDetails.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHProject.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHProjectChangeRequest.h +66 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/Photos.apinotes +12 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/Photos.h +58 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PhotosTypes.h +332 -0
- package/sdk/ios/System/Library/Frameworks/Photos.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHContentEditingController.h +48 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHLivePhotoView.h +117 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHPhotoLibrary+PhotosUISupport.h +56 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHPicker.h +311 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumCreationViewController.h +112 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumCustomizationViewController.h +76 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PHSharedAlbumPostingViewController.h +72 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Headers/PhotosUI.h +38 -0
- package/sdk/ios/System/Library/Frameworks/PhotosUI.framework/Modules/module.modulemap +6 -0
- package/src/nitro-dependencies.ts +3 -3
- package/src/turbo-source.ts +15 -2
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHPicker.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2020 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
#if TARGET_OS_IPHONE
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
#else
|
|
13
|
+
#import <AppKit/AppKit.h>
|
|
14
|
+
#endif // TARGET_OS_IPHONE
|
|
15
|
+
|
|
16
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
@class PHPhotoLibrary;
|
|
19
|
+
|
|
20
|
+
NS_REFINED_FOR_SWIFT
|
|
21
|
+
typedef NS_ENUM(NSInteger, PHAssetPlaybackStyle);
|
|
22
|
+
|
|
23
|
+
/// A mode that determines which representation \c PHPickerViewController should provide for an asset given a type identifier, if multiple representations are available.
|
|
24
|
+
typedef NS_ENUM(NSInteger, PHPickerConfigurationAssetRepresentationMode) {
|
|
25
|
+
/// Uses the best representation determined by the system. This may change in future releases.
|
|
26
|
+
PHPickerConfigurationAssetRepresentationModeAutomatic = 0,
|
|
27
|
+
/// Uses the current representation to avoid transcoding if possible.
|
|
28
|
+
PHPickerConfigurationAssetRepresentationModeCurrent = 1,
|
|
29
|
+
/// Uses the most compatible representation if possible, even if transcoding is required.
|
|
30
|
+
PHPickerConfigurationAssetRepresentationModeCompatible = 2,
|
|
31
|
+
} NS_SWIFT_SENDABLE API_AVAILABLE(ios(14), macos(13)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos);
|
|
32
|
+
|
|
33
|
+
/// An enum that determines how \c PHPickerViewController handles user selection.
|
|
34
|
+
typedef NS_ENUM(NSInteger, PHPickerConfigurationSelection) {
|
|
35
|
+
/// Uses the default selection behavior.
|
|
36
|
+
PHPickerConfigurationSelectionDefault = 0,
|
|
37
|
+
/// Uses the selection order made by the user. Selected assets are numbered.
|
|
38
|
+
PHPickerConfigurationSelectionOrdered = 1,
|
|
39
|
+
/// Selection can be delivered continuously.
|
|
40
|
+
PHPickerConfigurationSelectionContinuous API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos) = 2,
|
|
41
|
+
/// Selection can be delivered continuously and uses the selection order made by the user. Selected assets are numbered.
|
|
42
|
+
PHPickerConfigurationSelectionContinuousAndOrdered API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos) = 3,
|
|
43
|
+
} NS_SWIFT_SENDABLE API_AVAILABLE(ios(15), macos(13)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos);
|
|
44
|
+
|
|
45
|
+
/// An enum that determines the mode of \c PHPickerViewController.
|
|
46
|
+
typedef NS_ENUM(NSInteger, PHPickerMode) {
|
|
47
|
+
/// Default picker mode.
|
|
48
|
+
PHPickerModeDefault API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos) = 0,
|
|
49
|
+
/// Compact picker mode (single row).
|
|
50
|
+
PHPickerModeCompact API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos) = 1,
|
|
51
|
+
} NS_REFINED_FOR_SWIFT API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos) API_UNAVAILABLE(tvos);
|
|
52
|
+
|
|
53
|
+
/// Constants that specify one or a set of \c PHPickerViewController capabilities.
|
|
54
|
+
typedef NS_OPTIONS(NSUInteger, PHPickerCapabilities) {
|
|
55
|
+
/// No specified capabilities.
|
|
56
|
+
PHPickerCapabilitiesNone = 0,
|
|
57
|
+
/// The search bar.
|
|
58
|
+
PHPickerCapabilitiesSearch = 1 << 0,
|
|
59
|
+
/// The staging area.
|
|
60
|
+
PHPickerCapabilitiesStagingArea = 1 << 1,
|
|
61
|
+
/// The sidebar or the albums tab.
|
|
62
|
+
PHPickerCapabilitiesCollectionNavigation = 1 << 2,
|
|
63
|
+
/// The "Cancel" and the "Add" (if possible) button.
|
|
64
|
+
PHPickerCapabilitiesSelectionActions = 1 << 3,
|
|
65
|
+
/// Show intervention UI explaining potential risks for kids or teens if a sensitive asset is selected. Analysis and intervention will only be performed if "Communication Safety" is enabled in ScreenTime.
|
|
66
|
+
PHPickerCapabilitiesSensitivityAnalysisIntervention = 1 << 4,
|
|
67
|
+
} API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos, tvos);
|
|
68
|
+
|
|
69
|
+
/// Constants that specify metadata options for \c PHPickerViewController.
|
|
70
|
+
typedef NS_OPTIONS(NSUInteger, PHPickerMetadataOptions) {
|
|
71
|
+
/// No metadata options.
|
|
72
|
+
PHPickerMetadataOptionsNone = 0,
|
|
73
|
+
/// Remove location metadata.
|
|
74
|
+
PHPickerMetadataOptionsRemoveLocation = 1 << 0,
|
|
75
|
+
/// Remove captions metadata.
|
|
76
|
+
PHPickerMetadataOptionsRemoveCaptions = 1 << 1,
|
|
77
|
+
} API_AVAILABLE(ios(27), macos(27), visionos(27)) API_UNAVAILABLE(watchos, tvos);
|
|
78
|
+
|
|
79
|
+
NS_ASSUME_NONNULL_END
|
|
80
|
+
|
|
81
|
+
API_AVAILABLE_BEGIN(ios(14), macos(13))
|
|
82
|
+
API_UNAVAILABLE_BEGIN(tvos, watchos)
|
|
83
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
84
|
+
|
|
85
|
+
/// A search text for \c PHPickerViewController.
|
|
86
|
+
OS_EXPORT
|
|
87
|
+
NS_REFINED_FOR_SWIFT
|
|
88
|
+
API_AVAILABLE(ios(27), macos(27), visionos(27))
|
|
89
|
+
API_UNAVAILABLE(watchos)
|
|
90
|
+
@interface PHPickerSearchText : NSObject <NSCopying>
|
|
91
|
+
|
|
92
|
+
/// Creates a search text from a string.
|
|
93
|
+
- (instancetype)initWithString:(NSString *)string API_AVAILABLE(ios(27), macos(27), visionos(27));
|
|
94
|
+
|
|
95
|
+
#if TARGET_OS_IOS && !TARGET_OS_VISION
|
|
96
|
+
/// Creates a search text from a photo search suggestion.
|
|
97
|
+
- (instancetype)initWithPhotoSearchSuggestion:(UIPhotoSearchSuggestion *)suggestion API_AVAILABLE(ios(27)) API_UNAVAILABLE(macCatalyst, macos, visionos);
|
|
98
|
+
#endif
|
|
99
|
+
|
|
100
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
101
|
+
|
|
102
|
+
@end
|
|
103
|
+
|
|
104
|
+
/// A filter that restricts which types of assets \c PHPickerViewController can show.
|
|
105
|
+
OS_EXPORT
|
|
106
|
+
NS_REFINED_FOR_SWIFT
|
|
107
|
+
API_UNAVAILABLE(watchos)
|
|
108
|
+
@interface PHPickerFilter : NSObject <NSCopying>
|
|
109
|
+
|
|
110
|
+
/// The filter for images.
|
|
111
|
+
@property (nonatomic, class, readonly) PHPickerFilter *imagesFilter API_UNAVAILABLE(watchos);
|
|
112
|
+
|
|
113
|
+
/// The filter for videos.
|
|
114
|
+
@property (nonatomic, class, readonly) PHPickerFilter *videosFilter;
|
|
115
|
+
|
|
116
|
+
/// The filter for live photos.
|
|
117
|
+
@property (nonatomic, class, readonly) PHPickerFilter *livePhotosFilter;
|
|
118
|
+
|
|
119
|
+
/// The filter for Depth Effect photos.
|
|
120
|
+
@property (nonatomic, class, readonly) PHPickerFilter *depthEffectPhotosFilter API_AVAILABLE(ios(16));
|
|
121
|
+
|
|
122
|
+
/// The filter for bursts.
|
|
123
|
+
@property (nonatomic, class, readonly) PHPickerFilter *burstsFilter API_AVAILABLE(ios(16));
|
|
124
|
+
|
|
125
|
+
/// The filter for panorama photos.
|
|
126
|
+
@property (nonatomic, class, readonly) PHPickerFilter *panoramasFilter API_AVAILABLE(ios(15));
|
|
127
|
+
|
|
128
|
+
/// The filter for screenshots.
|
|
129
|
+
@property (nonatomic, class, readonly) PHPickerFilter *screenshotsFilter API_AVAILABLE(ios(15));
|
|
130
|
+
|
|
131
|
+
/// The filter for screen recordings.
|
|
132
|
+
@property (nonatomic, class, readonly) PHPickerFilter *screenRecordingsFilter API_AVAILABLE(ios(15));
|
|
133
|
+
|
|
134
|
+
/// The filter for Cinematic videos.
|
|
135
|
+
@property (nonatomic, class, readonly) PHPickerFilter *cinematicVideosFilter API_AVAILABLE(ios(16));
|
|
136
|
+
|
|
137
|
+
/// The filter for Slow-Mo videos.
|
|
138
|
+
@property (nonatomic, class, readonly) PHPickerFilter *slomoVideosFilter API_AVAILABLE(ios(15));
|
|
139
|
+
|
|
140
|
+
/// The filter for time-lapse videos.
|
|
141
|
+
@property (nonatomic, class, readonly) PHPickerFilter *timelapseVideosFilter API_AVAILABLE(ios(15));
|
|
142
|
+
|
|
143
|
+
/// The filter for spatial media.
|
|
144
|
+
@property (nonatomic, class, readonly) PHPickerFilter *spatialMediaFilter API_AVAILABLE(ios(18), macos(15), visionos(2));
|
|
145
|
+
|
|
146
|
+
/// Returns a new filter based on the asset playback style.
|
|
147
|
+
+ (PHPickerFilter *)playbackStyleFilter:(PHAssetPlaybackStyle)playbackStyle API_AVAILABLE(ios(15));
|
|
148
|
+
|
|
149
|
+
/// Returns a new filter formed by OR-ing the filters in a given array.
|
|
150
|
+
+ (PHPickerFilter *)anyFilterMatchingSubfilters:(NSArray<PHPickerFilter *> *)subfilters;
|
|
151
|
+
|
|
152
|
+
/// Returns a new filter formed by AND-ing the filters in a given array.
|
|
153
|
+
+ (PHPickerFilter *)allFilterMatchingSubfilters:(NSArray<PHPickerFilter *> *)subfilters API_AVAILABLE(ios(15));
|
|
154
|
+
|
|
155
|
+
/// Returns a new filter formed by negating the given filter.
|
|
156
|
+
+ (PHPickerFilter *)notFilterOfSubfilter:(PHPickerFilter *)subfilter API_AVAILABLE(ios(15));
|
|
157
|
+
|
|
158
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
159
|
+
|
|
160
|
+
@end
|
|
161
|
+
|
|
162
|
+
/// An update configuration for \c PHPickerViewController.
|
|
163
|
+
OS_EXPORT
|
|
164
|
+
NS_REFINED_FOR_SWIFT
|
|
165
|
+
API_AVAILABLE(ios(17), macos(14))
|
|
166
|
+
@interface PHPickerUpdateConfiguration : NSObject <NSCopying>
|
|
167
|
+
|
|
168
|
+
/// The maximum number of assets that can be selected.
|
|
169
|
+
@property (nonatomic) NSInteger selectionLimit API_AVAILABLE(ios(17), macos(14));
|
|
170
|
+
|
|
171
|
+
/// Edges of the picker that have no margin between the content and the edge (e.g. without bars in between).
|
|
172
|
+
@property (nonatomic) NSDirectionalRectEdge edgesWithoutContentMargins API_AVAILABLE(ios(17), macos(14));
|
|
173
|
+
|
|
174
|
+
/// The search text for the picker.
|
|
175
|
+
@property (nonatomic, copy, nullable) PHPickerSearchText *searchText API_AVAILABLE(ios(27), macos(27), visionos(27));
|
|
176
|
+
|
|
177
|
+
@end
|
|
178
|
+
|
|
179
|
+
/// A configuration for \c PHPickerViewController.
|
|
180
|
+
OS_EXPORT
|
|
181
|
+
NS_REFINED_FOR_SWIFT
|
|
182
|
+
API_UNAVAILABLE(watchos)
|
|
183
|
+
@interface PHPickerConfiguration : NSObject <NSCopying>
|
|
184
|
+
|
|
185
|
+
/// The preferred representation mode of selected assets. Default is \c PHPickerConfigurationAssetRepresentationModeAutomatic.
|
|
186
|
+
/// @discussion Setting \c preferredAssetRepresentationMode to \c PHPickerConfigurationAssetRepresentationModeAutomatic means the best representation determined by the system will be used.
|
|
187
|
+
@property (nonatomic) PHPickerConfigurationAssetRepresentationMode preferredAssetRepresentationMode API_UNAVAILABLE(watchos);
|
|
188
|
+
|
|
189
|
+
/// The selection behavior of the picker. Default is \c PHPickerConfigurationSelectionDefault.
|
|
190
|
+
@property (nonatomic) PHPickerConfigurationSelection selection API_AVAILABLE(ios(15)) API_UNAVAILABLE(watchos);
|
|
191
|
+
|
|
192
|
+
/// The maximum number of assets that can be selected. Default is 1.
|
|
193
|
+
/// @discussion Setting \c selectionLimit to 0 means maximum supported by the system.
|
|
194
|
+
@property (nonatomic) NSInteger selectionLimit API_UNAVAILABLE(watchos);
|
|
195
|
+
|
|
196
|
+
/// Types of assets that can be shown. Default is \c nil.
|
|
197
|
+
/// @discussion Setting \c filter to \c nil means all asset types can be shown.
|
|
198
|
+
@property (nonatomic, copy, nullable) PHPickerFilter *filter API_UNAVAILABLE(watchos);
|
|
199
|
+
|
|
200
|
+
/// Local identifiers of assets to be shown as selected when the picker is presented. Default is an empty array.
|
|
201
|
+
/// @discussion \c preselectedAssetIdentifiers should be an empty array if \c selectionLimit is 1 or \c photoLibrary is not specified. Returned item providers for preselected assets are always empty.
|
|
202
|
+
@property (nonatomic, copy) NSArray<NSString *> *preselectedAssetIdentifiers API_AVAILABLE(ios(15)) API_UNAVAILABLE(watchos);
|
|
203
|
+
|
|
204
|
+
/// The mode of the picker. Default is \c PHPickerModeDefault.
|
|
205
|
+
@property (nonatomic) PHPickerMode mode API_AVAILABLE(ios(17), macos(14)) API_UNAVAILABLE(watchos);
|
|
206
|
+
|
|
207
|
+
/// Edges of the picker that have no margin between the content and the edge (e.g. without bars in between). Default is \c NSDirectionalRectEdgeNone.
|
|
208
|
+
@property (nonatomic) NSDirectionalRectEdge edgesWithoutContentMargins API_AVAILABLE(ios(17), macos(14));
|
|
209
|
+
|
|
210
|
+
/// Capabilities of the picker that should be disabled. Default is \c PHPickerCapabilitiesNone.
|
|
211
|
+
@property (nonatomic) PHPickerCapabilities disabledCapabilities API_AVAILABLE(ios(17), macos(14));
|
|
212
|
+
|
|
213
|
+
/// Metadata options for the picker. Default is \c PHPickerMetadataOptionsNone.
|
|
214
|
+
@property (nonatomic) PHPickerMetadataOptions metadataOptions API_AVAILABLE(ios(27), macos(27), visionos(27));
|
|
215
|
+
|
|
216
|
+
/// The search text for the picker. Default is \c nil.
|
|
217
|
+
@property (nonatomic, copy, nullable) PHPickerSearchText *searchText API_AVAILABLE(ios(27), macos(27), visionos(27));
|
|
218
|
+
|
|
219
|
+
/// Initializes a new configuration with the \c photoLibrary the picker should use.
|
|
220
|
+
- (instancetype)initWithPhotoLibrary:(PHPhotoLibrary *)photoLibrary API_UNAVAILABLE(watchos);
|
|
221
|
+
|
|
222
|
+
/// Initializes a new configuration with the system photo library. This configuration never returns asset identifiers.
|
|
223
|
+
- (instancetype)init API_UNAVAILABLE(watchos);
|
|
224
|
+
|
|
225
|
+
@end
|
|
226
|
+
|
|
227
|
+
/// A user selected asset from \c PHPickerViewController.
|
|
228
|
+
OS_EXPORT
|
|
229
|
+
NS_REFINED_FOR_SWIFT
|
|
230
|
+
API_UNAVAILABLE(watchos)
|
|
231
|
+
@interface PHPickerResult : NSObject
|
|
232
|
+
|
|
233
|
+
/// Representations of the selected asset.
|
|
234
|
+
@property (nonatomic, readonly) NSItemProvider *itemProvider API_UNAVAILABLE(watchos);
|
|
235
|
+
|
|
236
|
+
/// The local identifier of the selected asset.
|
|
237
|
+
@property (nonatomic, readonly, nullable) NSString *assetIdentifier API_UNAVAILABLE(watchos);
|
|
238
|
+
|
|
239
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
240
|
+
|
|
241
|
+
@end
|
|
242
|
+
|
|
243
|
+
@class PHPickerViewController;
|
|
244
|
+
|
|
245
|
+
/// A set of methods that the delegate must implement to respond to \c PHPickerViewController user events.
|
|
246
|
+
OS_EXPORT
|
|
247
|
+
NS_SWIFT_UI_ACTOR
|
|
248
|
+
NS_REFINED_FOR_SWIFT
|
|
249
|
+
API_UNAVAILABLE(watchos)
|
|
250
|
+
@protocol PHPickerViewControllerDelegate <NSObject>
|
|
251
|
+
|
|
252
|
+
/// Called when the user completes a selection or dismisses \c PHPickerViewController using the cancel button.
|
|
253
|
+
/// @discussion The picker won't be automatically dismissed when this method is called.
|
|
254
|
+
- (void)picker:(PHPickerViewController *)picker didFinishPicking:(NSArray<PHPickerResult *> *)results API_UNAVAILABLE(watchos);
|
|
255
|
+
|
|
256
|
+
@end
|
|
257
|
+
|
|
258
|
+
/// 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.
|
|
259
|
+
/// @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.
|
|
260
|
+
OS_EXPORT
|
|
261
|
+
API_UNAVAILABLE(watchos)
|
|
262
|
+
#if __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
|
|
263
|
+
@interface PHPickerViewController : UIViewController
|
|
264
|
+
#elif __has_include(<AppKit/NSViewController.h>)
|
|
265
|
+
@interface PHPickerViewController : NSViewController
|
|
266
|
+
#else
|
|
267
|
+
@interface PHPickerViewController : NSObject
|
|
268
|
+
#endif // __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
|
|
269
|
+
|
|
270
|
+
/// The configuration passed in during initialization.
|
|
271
|
+
@property (nonatomic, copy, readonly) PHPickerConfiguration *configuration NS_REFINED_FOR_SWIFT API_UNAVAILABLE(watchos);
|
|
272
|
+
|
|
273
|
+
/// The delegate to be notified.
|
|
274
|
+
@property (nonatomic, weak) id<PHPickerViewControllerDelegate> delegate NS_REFINED_FOR_SWIFT API_UNAVAILABLE(watchos);
|
|
275
|
+
|
|
276
|
+
/// Initializes a new picker with the \c configuration the picker should use.
|
|
277
|
+
- (instancetype)initWithConfiguration:(PHPickerConfiguration *)configuration NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT API_UNAVAILABLE(watchos);
|
|
278
|
+
|
|
279
|
+
/// Updates the picker using the configuration.
|
|
280
|
+
- (void)updatePickerUsingConfiguration:(PHPickerUpdateConfiguration *)configuration API_AVAILABLE(ios(17), macos(14)) NS_REFINED_FOR_SWIFT;
|
|
281
|
+
|
|
282
|
+
/// Deselects selected assets in the picker.
|
|
283
|
+
/// @discussion Does nothing if asset identifiers are invalid or not selected, or \c photoLibrary is not specified in the configuration.
|
|
284
|
+
- (void)deselectAssetsWithIdentifiers:(NSArray<NSString *> *)identifiers API_AVAILABLE(ios(16));
|
|
285
|
+
|
|
286
|
+
/// Reorders selected assets in the picker. A \c nil \c afterIdentifier means moving to the front.
|
|
287
|
+
/// @discussion Does nothing if asset identifiers are invalid or not selected, or \c photoLibrary is not specified in the configuration.
|
|
288
|
+
- (void)moveAssetWithIdentifier:(NSString *)identifier afterAssetWithIdentifier:(nullable NSString *)afterIdentifier API_AVAILABLE(ios(16));
|
|
289
|
+
|
|
290
|
+
/// Scrolls content to the initial position if possible.
|
|
291
|
+
- (void)scrollToInitialPosition API_AVAILABLE(ios(17), macos(14));
|
|
292
|
+
|
|
293
|
+
/// Zooms in content if possible.
|
|
294
|
+
- (void)zoomIn API_AVAILABLE(ios(17), macos(14));
|
|
295
|
+
|
|
296
|
+
/// Zooms out content if possible.
|
|
297
|
+
- (void)zoomOut API_AVAILABLE(ios(17), macos(14));
|
|
298
|
+
|
|
299
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
300
|
+
#if __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
|
|
301
|
+
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
|
|
302
|
+
#elif __has_include(<AppKit/NSViewController.h>)
|
|
303
|
+
- (instancetype)initWithNibName:(nullable NSNibName)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
|
|
304
|
+
#endif // __has_include(<UIKit/UIViewController.h>) && TARGET_OS_IPHONE
|
|
305
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
306
|
+
|
|
307
|
+
@end
|
|
308
|
+
|
|
309
|
+
NS_ASSUME_NONNULL_END
|
|
310
|
+
API_UNAVAILABLE_END // (tvos, watchos)
|
|
311
|
+
API_AVAILABLE_END // (ios(14), macos(13))
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHSharedAlbumCreationViewController.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2026 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#if TARGET_OS_OSX
|
|
9
|
+
#import <AppKit/AppKit.h>
|
|
10
|
+
#else
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
#endif
|
|
13
|
+
#import <Photos/Photos.h>
|
|
14
|
+
|
|
15
|
+
@class PHSharedAlbumCreationViewController;
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
API_AVAILABLE_BEGIN(ios(27), macos(27), visionos(27))
|
|
19
|
+
API_UNAVAILABLE_BEGIN(tvos, watchos)
|
|
20
|
+
|
|
21
|
+
/// The sharing policy for creating shared albums.
|
|
22
|
+
typedef NS_ENUM(NSInteger, PHSharedAlbumCreationSharingPolicy) {
|
|
23
|
+
/// The policy for requiring that only people the user approves or invites are allowed to access the shared album.
|
|
24
|
+
PHSharedAlbumCreationSharingPolicyPrivate,
|
|
25
|
+
/// The policy for allowing anyone, without approval, to access the shared album.
|
|
26
|
+
PHSharedAlbumCreationSharingPolicyPublic,
|
|
27
|
+
} NS_SWIFT_SENDABLE;
|
|
28
|
+
|
|
29
|
+
/// An object used to configure a `PHSharedAlbumCreationViewController`.
|
|
30
|
+
NS_REFINED_FOR_SWIFT
|
|
31
|
+
@interface PHSharedAlbumCreationConfiguration : NSObject
|
|
32
|
+
|
|
33
|
+
/// - Parameters:
|
|
34
|
+
/// - photoLibrary: The photo library in which the shared album will be created.
|
|
35
|
+
- (instancetype)initWithPhotoLibrary:(PHPhotoLibrary *)photoLibrary NS_DESIGNATED_INITIALIZER;
|
|
36
|
+
|
|
37
|
+
/// The photo library in which the shared album will be created.
|
|
38
|
+
@property (nonatomic, readonly) PHPhotoLibrary *photoLibrary;
|
|
39
|
+
|
|
40
|
+
/// The default title for the shared album. Useful for suggesting a relevant title to the user. Defaults to `nil`.
|
|
41
|
+
@property (nonatomic, copy, nullable) NSString *defaultTitle;
|
|
42
|
+
|
|
43
|
+
/// The default sharing policy of the shared album. If not specified, this defaults to `PHSharedAlbumCreationSharingPolicyPrivate`.
|
|
44
|
+
@property (nonatomic) PHSharedAlbumCreationSharingPolicy defaultPolicy;
|
|
45
|
+
|
|
46
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
47
|
+
|
|
48
|
+
@end
|
|
49
|
+
|
|
50
|
+
/// An object that contains useful information about a created shared album.
|
|
51
|
+
NS_SWIFT_SENDABLE NS_REFINED_FOR_SWIFT
|
|
52
|
+
@interface PHSharedAlbumCreationResult : NSObject
|
|
53
|
+
|
|
54
|
+
/// The created shared album's identifier.
|
|
55
|
+
@property (nonatomic, readonly) NSString *albumIdentifier;
|
|
56
|
+
|
|
57
|
+
/// The created shared album's URL.
|
|
58
|
+
@property (nonatomic, readonly) NSURL *albumURL;
|
|
59
|
+
|
|
60
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
61
|
+
|
|
62
|
+
@end
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @abstract A set of methods that the delegate must implement to respond to `PHSharedAlbumCreationViewController` events.
|
|
66
|
+
*/
|
|
67
|
+
NS_SWIFT_NAME(PHSharedAlbumCreationViewController.Delegate)
|
|
68
|
+
@protocol PHSharedAlbumCreationViewControllerDelegate <NSObject>
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @abstract Called when shared album creation completes.
|
|
72
|
+
*
|
|
73
|
+
* @discussion If creation was successful, `-[PHSharedAlbumCreationViewController albumIdentifier]` will be non-`nil` and `error` will be `nil`. If creation was unsuccessful, `-[PHSharedAlbumCreationViewController albumIdentifier]` will be `nil` and `error` will be non-`nil`. The creation was cancelled by the user, both `-[PHSharedAlbumCreationViewController albumIdentifier]` and `error` will be `nil`. The view controller won't be dismissed automatically when this method is called.
|
|
74
|
+
*/
|
|
75
|
+
- (void)sharedAlbumCreationViewController:(PHSharedAlbumCreationViewController *)creationViewController didCompleteWithError:(nullable NSError *)error;
|
|
76
|
+
|
|
77
|
+
@end
|
|
78
|
+
|
|
79
|
+
#if TARGET_OS_OSX
|
|
80
|
+
/**
|
|
81
|
+
* @abstract This class is used to present the shared album creation view from AppKit-based view controllers.
|
|
82
|
+
*/
|
|
83
|
+
@interface PHSharedAlbumCreationViewController: NSViewController
|
|
84
|
+
#else
|
|
85
|
+
/**
|
|
86
|
+
* @abstract This class is used to present the shared album creation view from UIKit-based view controllers.
|
|
87
|
+
*/
|
|
88
|
+
@interface PHSharedAlbumCreationViewController: UIViewController
|
|
89
|
+
#endif
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @abstract Returns a view controller that allows the user to create a new shared album.
|
|
93
|
+
*
|
|
94
|
+
* @param configuration The configuration for creating a new shared album.
|
|
95
|
+
*/
|
|
96
|
+
- (instancetype)initWithConfiguration:(PHSharedAlbumCreationConfiguration *)configuration NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
|
|
97
|
+
|
|
98
|
+
/// The delegate to respond to `PHSharedAlbumCreationViewController` events.
|
|
99
|
+
@property (nonatomic, weak, nullable) id<PHSharedAlbumCreationViewControllerDelegate> delegate;
|
|
100
|
+
|
|
101
|
+
/// Upon successful album creation, `creationResult` will be non-nil and provide information about the just-created shared album.
|
|
102
|
+
@property (nonatomic, copy, nullable, readonly) PHSharedAlbumCreationResult *creationResult;
|
|
103
|
+
|
|
104
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
105
|
+
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
|
|
106
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
107
|
+
|
|
108
|
+
@end
|
|
109
|
+
|
|
110
|
+
API_UNAVAILABLE_END // tvos, watchos
|
|
111
|
+
API_AVAILABLE_END // ios(27), macos(27), visionos(27)
|
|
112
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHSharedAlbumCustomizationViewController.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2026 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#if TARGET_OS_OSX
|
|
9
|
+
#import <AppKit/AppKit.h>
|
|
10
|
+
#else
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
#endif
|
|
13
|
+
#import <Photos/Photos.h>
|
|
14
|
+
|
|
15
|
+
@class PHSharedAlbumCustomizationViewController;
|
|
16
|
+
|
|
17
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
18
|
+
API_AVAILABLE_BEGIN(ios(27), macos(27), visionos(27))
|
|
19
|
+
API_UNAVAILABLE_BEGIN(tvos, watchos)
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @abstract A set of methods that the delegate must implement to respond to `PHSharedAlbumCustomizationViewController` events.
|
|
23
|
+
*/
|
|
24
|
+
NS_SWIFT_NAME(PHSharedAlbumCustomizationViewController.Delegate)
|
|
25
|
+
@protocol PHSharedAlbumCustomizationViewControllerDelegate <NSObject>
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @abstract Called when shared album customization completes.
|
|
29
|
+
*
|
|
30
|
+
* @discussion `error` will be `nil` if customization was successful and non-`nil` if it was unsuccessful. The view controller won't be dismissed automatically when this method is called.
|
|
31
|
+
*/
|
|
32
|
+
- (void)sharedAlbumCustomizationViewController:(PHSharedAlbumCustomizationViewController *)customizationViewController didCompleteWithError:(nullable NSError *)error;
|
|
33
|
+
|
|
34
|
+
@end
|
|
35
|
+
|
|
36
|
+
#if TARGET_OS_OSX
|
|
37
|
+
/**
|
|
38
|
+
* @abstract This class is used to present the shared album customization view from AppKit-based view controllers.
|
|
39
|
+
*
|
|
40
|
+
* @discussion Only the system photo library is supported, so `albumIdentifier` must be for an album in the system photo library. If `albumIdentifier` is from a different library, showing a customization sheet will fail.
|
|
41
|
+
*/
|
|
42
|
+
@interface PHSharedAlbumCustomizationViewController: NSViewController
|
|
43
|
+
#else
|
|
44
|
+
/**
|
|
45
|
+
* @abstract This class is used to present the shared album customization view from UIKit-based view controllers.
|
|
46
|
+
*
|
|
47
|
+
* @discussion Only the system photo library is supported, so `albumIdentifier` must be for an album in the system photo library. If `albumIdentifier` is from a different library, showing a customization sheet will fail.
|
|
48
|
+
*/
|
|
49
|
+
@interface PHSharedAlbumCustomizationViewController: UIViewController
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @abstract Returns a view controller that allows the user to customize a specified shared album.
|
|
54
|
+
*
|
|
55
|
+
* @discussion Only the system photo library is supported, so `albumIdentifier` must be for an album in the system photo library. If `albumIdentifier` is from a different library, showing a customization sheet will fail.
|
|
56
|
+
*
|
|
57
|
+
* @param albumIdentifier The identifier of the shared album to be customized.
|
|
58
|
+
* @param photoLibrary The photo library in which the specified shared album exists.
|
|
59
|
+
*/
|
|
60
|
+
- (instancetype)initWithAlbumIdentifier:(NSString *)albumIdentifier photoLibrary:(PHPhotoLibrary *)photoLibrary NS_DESIGNATED_INITIALIZER;
|
|
61
|
+
|
|
62
|
+
/// The delegate to respond to `PHSharedAlbumCustomizationViewController` events.
|
|
63
|
+
@property (nonatomic, weak, nullable) id<PHSharedAlbumCustomizationViewControllerDelegate> delegate;
|
|
64
|
+
|
|
65
|
+
/// The identifier of the shared album to be customized.
|
|
66
|
+
@property (nonatomic, copy, readonly) NSString *albumIdentifier;
|
|
67
|
+
|
|
68
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
69
|
+
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
|
|
70
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
71
|
+
|
|
72
|
+
@end
|
|
73
|
+
|
|
74
|
+
API_UNAVAILABLE_END // tvos, watchos
|
|
75
|
+
API_AVAILABLE_END // ios(27), macos(27), visionos(27)
|
|
76
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PHSharedAlbumPostingViewController.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2026 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#if TARGET_OS_OSX
|
|
9
|
+
#import <AppKit/AppKit.h>
|
|
10
|
+
#else
|
|
11
|
+
#import <UIKit/UIKit.h>
|
|
12
|
+
#endif
|
|
13
|
+
#import <Photos/Photos.h>
|
|
14
|
+
#import <PhotosUI/PhotosUI.h>
|
|
15
|
+
|
|
16
|
+
@class PHSharedAlbumPostingViewController;
|
|
17
|
+
|
|
18
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
19
|
+
API_AVAILABLE_BEGIN(ios(27), macos(27), visionos(27))
|
|
20
|
+
API_UNAVAILABLE_BEGIN(tvos, watchos)
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @abstract A set of methods that the delegate must implement to respond to `PHSharedAlbumPostingViewController` events.
|
|
24
|
+
*/
|
|
25
|
+
NS_SWIFT_NAME(PHSharedAlbumPostingViewController.Delegate)
|
|
26
|
+
@protocol PHSharedAlbumPostingViewControllerDelegate <NSObject>
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @abstract Called when asset posting has completed.
|
|
30
|
+
*
|
|
31
|
+
* @discussion `error` will be `nil` if asset posting was successful and non-`nil` if it was unsuccessful. The view controller won't be dismissed automatically when this method is called.
|
|
32
|
+
*/
|
|
33
|
+
- (void)sharedAlbumPostingViewController:(PHSharedAlbumPostingViewController *)postingViewController didCompleteWithError:(nullable NSError *)error;
|
|
34
|
+
|
|
35
|
+
@end
|
|
36
|
+
|
|
37
|
+
#if TARGET_OS_OSX
|
|
38
|
+
/**
|
|
39
|
+
* @abstract This class is used to present a view for posting assets to a shared album from AppKit-based view controllers.
|
|
40
|
+
*/
|
|
41
|
+
@interface PHSharedAlbumPostingViewController: NSViewController
|
|
42
|
+
#else
|
|
43
|
+
/**
|
|
44
|
+
* @abstract This class is used to present a view for posting assets to a shared album from UIKit-based view controllers.
|
|
45
|
+
*/
|
|
46
|
+
@interface PHSharedAlbumPostingViewController: UIViewController
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @abstract Returns a view controller that allows the user to create a new shared album.
|
|
51
|
+
*
|
|
52
|
+
* @param items The items to be posted to the shared album.
|
|
53
|
+
* @param defaultAlbumIdentifier Identifier for the shared album to be pre-selected. If none provided, the user can manually choose a shared album.
|
|
54
|
+
* @param photoLibrary The photo library to choose from.
|
|
55
|
+
*/
|
|
56
|
+
- (instancetype)initWithItems:(NSArray<PHPickerResult *> *)items defaultAlbumIdentifier:(nullable NSString *)defaultAlbumIdentifier photoLibrary:(PHPhotoLibrary *)photoLibrary NS_DESIGNATED_INITIALIZER NS_REFINED_FOR_SWIFT;
|
|
57
|
+
|
|
58
|
+
/// The delegate to respond to `PHSharedAlbumPostingViewController` events.
|
|
59
|
+
@property (nonatomic, weak, nullable) id<PHSharedAlbumPostingViewControllerDelegate> delegate;
|
|
60
|
+
|
|
61
|
+
/// The identifier of the shared album that was posted to.
|
|
62
|
+
@property (nonatomic, copy, nullable, readonly) NSString *albumIdentifier;
|
|
63
|
+
|
|
64
|
+
- (instancetype)init NS_UNAVAILABLE;
|
|
65
|
+
- (instancetype)initWithNibName:(nullable NSString *)nibNameOrNil bundle:(nullable NSBundle *)nibBundleOrNil NS_UNAVAILABLE;
|
|
66
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_UNAVAILABLE;
|
|
67
|
+
|
|
68
|
+
@end
|
|
69
|
+
|
|
70
|
+
API_UNAVAILABLE_END // tvos, watchos
|
|
71
|
+
API_AVAILABLE_END // ios(27), macos(27), visionos(27)
|
|
72
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//
|
|
2
|
+
// PhotosUI.h
|
|
3
|
+
// PhotosUI
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2014 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#ifndef PhotosUI_PhotosUI_h
|
|
9
|
+
#define PhotosUI_PhotosUI_h
|
|
10
|
+
|
|
11
|
+
#import <TargetConditionals.h>
|
|
12
|
+
|
|
13
|
+
#if TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_TV || TARGET_OS_VISION
|
|
14
|
+
#import <PhotosUI/PHLivePhotoView.h>
|
|
15
|
+
#endif
|
|
16
|
+
|
|
17
|
+
#if TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_WATCH || TARGET_OS_VISION || TARGET_OS_TV
|
|
18
|
+
#import <PhotosUI/PHPicker.h>
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
#if TARGET_OS_IOS || TARGET_OS_OSX || TARGET_OS_VISION
|
|
22
|
+
#import <PhotosUI/PHContentEditingController.h>
|
|
23
|
+
#import <PhotosUI/PHPhotoLibrary+PhotosUISupport.h>
|
|
24
|
+
#import <PhotosUI/PHSharedAlbumCreationViewController.h>
|
|
25
|
+
#import <PhotosUI/PHSharedAlbumCustomizationViewController.h>
|
|
26
|
+
#import <PhotosUI/PHSharedAlbumPostingViewController.h>
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#if TARGET_OS_OSX
|
|
30
|
+
#import <PhotosUI/PhotosUITypes.h>
|
|
31
|
+
#import <PhotosUI/PHProjectExtensionContext.h>
|
|
32
|
+
#import <PhotosUI/PHProjectExtensionController.h>
|
|
33
|
+
#import <PhotosUI/PHProjectInfo.h>
|
|
34
|
+
#import <PhotosUI/PHProjectTypeDescription.h>
|
|
35
|
+
#import <PhotosUI/PHProjectTypeDescriptionDataSource.h>
|
|
36
|
+
#endif
|
|
37
|
+
|
|
38
|
+
#endif // PhotosUI_PhotosUI_h
|
|
@@ -101,7 +101,7 @@ const RN_SHARED_DEPENDENCIES: NitroDependency[] = [
|
|
|
101
101
|
},
|
|
102
102
|
]
|
|
103
103
|
|
|
104
|
-
// react-native 0.
|
|
104
|
+
// react-native 0.80 through 0.84 pin the same archives, with fmt 11
|
|
105
105
|
const RN_FMT_11_DEPENDENCIES: NitroDependency[] = [
|
|
106
106
|
...RN_SHARED_DEPENDENCIES,
|
|
107
107
|
{
|
|
@@ -128,7 +128,7 @@ const RN_FMT_12_DEPENDENCIES: NitroDependency[] = [
|
|
|
128
128
|
},
|
|
129
129
|
]
|
|
130
130
|
|
|
131
|
-
// fmt 11 pins React Native 0.
|
|
131
|
+
// fmt 11 pins React Native 0.80 through 0.84, fmt 12 pins 0.85 and later
|
|
132
132
|
function rnDependencies(
|
|
133
133
|
reactNativeVersion: string,
|
|
134
134
|
reactNativeRoot: string,
|
|
@@ -177,7 +177,7 @@ function rnDependencies(
|
|
|
177
177
|
}
|
|
178
178
|
const minor = Number(/^0\.(\d+)\./.exec(reactNativeVersion)?.[1])
|
|
179
179
|
if (minor >= 85) return RN_FMT_12_DEPENDENCIES
|
|
180
|
-
if (minor >=
|
|
180
|
+
if (minor >= 80) return RN_FMT_11_DEPENDENCIES
|
|
181
181
|
return []
|
|
182
182
|
}
|
|
183
183
|
|