Skip to content

Vision iOS xcode15.0 b5

Haritha Mohan edited this page Sep 25, 2023 · 3 revisions

#Vision.framework https://github.com/xamarin/xamarin-macios/pull/19099

diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h	2023-06-01 23:11:38
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/VNRequest.h	2023-07-15 21:02:13
@@ -125,7 +125,7 @@
 
 	@return A dictionary of per-stage supported compute devices, or `nil` if an error occurs.
 */
-- (nullable NSDictionary<VNComputeStage, NSArray<id<MLComputeDeviceProtocol>>*>*) supportedComputeStageDevicesAndReturnError:(NSError**)error NS_SWIFT_NAME(supportedComputeStageDevices());
+- (nullable NSDictionary<VNComputeStage, NSArray<id<MLComputeDeviceProtocol>>*>*) supportedComputeStageDevicesAndReturnError:(NSError**)error NS_REFINED_FOR_SWIFT;
 
 /*!
 	@brief Determine what the currently configured compute device is for a specific compute stage.
@@ -134,7 +134,7 @@
 
 	@return The currently assigned compute device, or `nil` if there is no explicit assignment.
 */
-- (nullable id<MLComputeDeviceProtocol>) computeDeviceForComputeStage:(VNComputeStage)computeStage;
+- (nullable id<MLComputeDeviceProtocol>) computeDeviceForComputeStage:(VNComputeStage)computeStage NS_REFINED_FOR_SWIFT;
 
 /*!
 	@brief Assign a specific compute device for a compute stage.
@@ -143,7 +143,7 @@
 	@param computeDevice The compute device to assign to the compute stage.  Passing nil for this parameter will remove any explicit compute device assignment, allowing Vision to select which device to use.
 	@param computeStage The compute stage being configured.
 */
-- (void) setComputeDevice:(nullable id<MLComputeDeviceProtocol>)computeDevice forComputeStage:(VNComputeStage)computeStage;
+- (void) setComputeDevice:(nullable id<MLComputeDeviceProtocol>)computeDevice forComputeStage:(VNComputeStage)computeStage NS_REFINED_FOR_SWIFT;
 
 @end
 
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes	2023-06-24 02:37:49
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/Vision.framework/Headers/Vision.apinotes	2023-07-15 21:46:54
@@ -104,3 +104,27 @@
     SwiftPrivate: true
     NullabilityOfRet: O
 
+- Name: VNRequest
+  Methods:
+  - Selector: "supportedComputeStageDevicesAndReturnError:"
+    MethodKind: Instance
+    SwiftName: "__supportedComputeStageDevices()"
+    SwiftPrivate: true
+    NullabilityOfRet: O
+  - Selector: "computeDeviceForComputeStage:"
+    MethodKind: Instance
+    SwiftName: "__computeDevice(for:)"
+    SwiftPrivate: true
+    Parameters:
+    - Position: 0
+      Nullability: N
+    NullabilityOfRet: O
+  - Selector: "setComputeDevice:forComputeStage:"
+    MethodKind: Instance
+    SwiftName: "__setComputeDevice(_:for:)"
+    SwiftPrivate: true
+    Parameters:
+    - Position: 0
+      Nullability: O
+    - Position: 1
+      Nullability: N
Clone this wiki locally