Skip to content

AVRouting iOS xcode14.1 rc

Alex Soto edited this page Oct 18, 2022 · 1 revision

#AVRouting.framework

diff -ruN /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h
--- /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h	2022-09-22 10:19:34.000000000 -0400
+++ /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/AVRouting.framework/Headers/AVCustomRoutingController.h	2022-10-06 13:31:02.000000000 -0400
@@ -140,9 +140,9 @@
     @abstract   Bytes of the IP address. A full or partial IP address for a device known to be on the network.
     @discussion To create full known IP, the app would do the following:
                     var anIPAddressInBytes:[Byte] = [192, 168, 10, 5]
-                    var address = NSData(bytes: anAddressInBytes, length: anAddressInBytes.count)
+                    var address = Data(bytes: anAddressInBytes, length: anAddressInBytes.count)
                     var aMaskInBytes:[Byte] = [255, 255, 255, 255]
-                    var mask = NSData(bytes: aMaskInBytes, length: aMaskInBytes.count)
+                    var mask = Data(bytes: aMaskInBytes, length: aMaskInBytes.count)
                     var partialIP = AVCustomRoutingPartialIP(address: address, mask: mask)
  */
 @property (readonly, copy, nonatomic) NSData *address API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
@@ -152,9 +152,9 @@
     @abstract   A mask representing how many octets of the ip address to respect.
     @discussion An app can use this mask to only pass e.g. the last two bytes of the IP address. So instead of passing the full IP address, the app can pass just the last two bytes by masking the first two.
                     var anIPAddressInBytes:[Byte] = [0, 0, 10, 5]
-                    var address = NSData(bytes: anAddressInBytes, length: anAddressInBytes.count)
+                    var address = Data(bytes: anAddressInBytes, length: anAddressInBytes.count)
                     var aMaskInBytes:[Byte] = [0, 0, 255, 255]
-                    var mask = NSData(bytes: aMaskInBytes, length: aMaskInBytes.count)
+                    var mask = Data(bytes: aMaskInBytes, length: aMaskInBytes.count)
                     var partialIP =AVCustomRoutingPartialIP(address: address, mask: mask)
  */
 @property (readonly, copy, nonatomic) NSData *mask API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(macos) API_UNAVAILABLE(tvos, watchos);
@@ -167,6 +167,8 @@
 
 - (instancetype)init NS_UNAVAILABLE;
 
++ (instancetype)new NS_UNAVAILABLE;
+
 @end
 
 NS_ASSUME_NONNULL_END
Clone this wiki locally