Skip to content

Accessibility watchOS xcode15.0 b1

Manuel de la Pena edited this page Aug 5, 2023 · 3 revisions

#Accessibility.framework https://github.com/xamarin/xamarin-macios/pull/18643

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXCustomContent.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXCustomContent.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXCustomContent.h	2023-03-09 19:24:56
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXCustomContent.h	2023-05-19 20:31:46
@@ -51,6 +51,12 @@
 API_AVAILABLE(ios(14.0), tvos(14.0), watchos(7.0), macos(11.0))
 @protocol AXCustomContentProvider <NSObject>
 @property (nonatomic, copy, null_resettable) NSArray<AXCustomContent *> *accessibilityCustomContent;
+
+// The block based setter takes precedence over the single line setter and property override.
+// The return type for the block must be a pointer to an AXCustomContent instance.
+typedef NSArray<AXCustomContent *> *_Nullable(^AXCustomContentReturnBlock)(void);
+@optional
+@property (nonatomic, copy, nullable) AXCustomContentReturnBlock accessibilityCustomContentBlock API_AVAILABLE(ios(17.0), tvos(17.0), watchos(10.0), macos(14.0));
 @end
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXSettings.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXSettings.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXSettings.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/AXSettings.h	2023-05-19 20:31:46
@@ -0,0 +1,24 @@
+//
+//  AXSettings.h
+//  Accessibility
+//
+//  Copyright © 2022 Apple. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <Accessibility/AXFoundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+// Returns whether the system setting for displaying animations in an animated image is on or off.
+AX_EXTERN BOOL AXAnimatedImagesEnabled(void) API_AVAILABLE(ios(17.0), macos(14.0), tvos(17.0), watchos(10.0));
+AX_EXTERN NSNotificationName const AXAnimatedImagesEnabledDidChangeNotification API_AVAILABLE(ios(17.0), macos(14.0), tvos(17.0), watchos(10.0));
+
+#if TARGET_OS_XR
+// When true, indicates that the user prefers alternatives to camera anchored content
+// Alternate anchors should be used for most camera anchored UI, such as world anchors
+AX_EXTERN BOOL AXPrefersCameraAnchorAlternative(void) API_AVAILABLE(xros(1.0));
+AX_EXTERN NSNotificationName const AXPrefersCameraAnchorAlternativeDidChangeNotification API_AVAILABLE(xros(1.0));
+#endif
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/Accessibility.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/Accessibility.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/Accessibility.h	2023-03-04 16:14:41
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/Accessibility.framework/Headers/Accessibility.h	2023-05-19 20:31:45
@@ -11,3 +11,4 @@
 #import <Accessibility/AXColorUtilities.h>
 #import <Accessibility/AXCustomContent.h>
 #import <Accessibility/AXHearingUtilities.h>
+#import <Accessibility/AXSettings.h>
Clone this wiki locally