Skip to content

QuartzCore macOS xcode13.1 rc

Manuel de la Pena edited this page Nov 2, 2021 · 5 revisions

#QuartzCore.framework https://github.com/xamarin/xamarin-macios/pull/13227

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h	2021-08-07 05:20:50.000000000 -0400
+++ /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h	2021-09-18 08:43:48.000000000 -0400
@@ -4,6 +4,7 @@
    All rights reserved. */
 
 #import <QuartzCore/CALayer.h>
+#import <QuartzCore/CAFrameRateRange.h>
 #import <Foundation/NSObject.h>
 
 @class NSArray, NSString, CAMediaTimingFunction, CAValueFunction;
@@ -53,6 +54,13 @@
 
 @property(getter=isRemovedOnCompletion) BOOL removedOnCompletion;
 
+/* Defines the range of desired frame rate in frames-per-second for this
+   animation. The actual frame rate is dynamically adjusted to better align
+   with other animation sources. */
+
+@property CAFrameRateRange preferredFrameRateRange
+    API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
 @end
 
 /* Delegate methods for CAAnimation. */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h	2021-08-07 05:20:50.000000000 -0400
+++ /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h	2021-09-18 08:43:47.000000000 -0400
@@ -4,6 +4,7 @@
    All rights reserved. */
 
 #import <QuartzCore/CABase.h>
+#import <QuartzCore/CAFrameRateRange.h>
 #import <Foundation/NSObject.h>
 
 @class NSString, NSRunLoop;
@@ -78,7 +79,19 @@
  * best-effort attempt at issuing callbacks at the requested rate. */
 
 @property(nonatomic) NSInteger preferredFramesPerSecond
-    API_AVAILABLE(ios(10.0), watchos(3.0), tvos(10.0));
+  API_DEPRECATED_WITH_REPLACEMENT ("preferredFrameRateRange",
+                                   ios(10.0, API_TO_BE_DEPRECATED),
+                                   watchos(3.0, API_TO_BE_DEPRECATED),
+                                   tvos(10.0, API_TO_BE_DEPRECATED));
+
+/* Defines the range of desired callback rate in frames-per-second for this
+   display link. If the range contains the same minimum and maximum frame rate,
+   this property is identical as preferredFramesPerSecond. Otherwise, the actual
+   callback rate will be dynamically adjusted to better align with other
+   animation sources. */
+
+@property(nonatomic) CAFrameRateRange preferredFrameRateRange
+    API_AVAILABLE(ios(15.0), watchos(8.0), tvos(15.0));
 
 @end
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h	2021-09-18 08:43:47.000000000 -0400
@@ -0,0 +1,42 @@
+/* CoreAnimation - CAFrameRateRange.h
+
+   Copyright (c) 2020-2021, Apple Inc.
+   All rights reserved. */
+
+#ifndef CAFRAMERATERANGE_H
+#define CAFRAMERATERANGE_H
+
+
+#include <QuartzCore/CABase.h>
+#include <stdbool.h>
+
+struct CAFrameRateRange {
+  float minimum;
+  float maximum;
+  float preferred CF_REFINED_FOR_SWIFT;
+} API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+typedef struct CAFrameRateRange CAFrameRateRange
+  API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
+
+CA_EXTERN_C_BEGIN
+
+CA_EXTERN const CAFrameRateRange CAFrameRateRangeDefault
+  API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+  CF_SWIFT_NAME(CAFrameRateRange.default);
+
+CA_EXTERN CAFrameRateRange CAFrameRateRangeMake(float minimum,
+                                                float maximum,
+                                                float preferred)
+  API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+  CF_SWIFT_UNAVAILABLE("Use CAFrameRateRange.init(minimum:maximum:preferred) instead");
+
+CA_EXTERN bool CAFrameRateRangeIsEqualToRange(CAFrameRateRange range,
+                                              CAFrameRateRange other)
+  API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0))
+  CF_REFINED_FOR_SWIFT;
+
+CA_EXTERN_C_END
+
+
+#endif /* CAFRAMERATERANGE_H */
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h	2021-08-04 00:21:13.000000000 -0400
+++ /Applications/Xcode_13.1.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h	2021-09-10 01:15:05.000000000 -0400
@@ -17,6 +17,7 @@
 #import <QuartzCore/CAMetalLayer.h>
 #import <QuartzCore/CAEmitterCell.h>
 #import <QuartzCore/CAEmitterLayer.h>
+#import <QuartzCore/CAFrameRateRange.h>
 #import <QuartzCore/CAGradientLayer.h>
 #import <QuartzCore/CALayer.h>
 #import <QuartzCore/CAMediaTiming.h>
Clone this wiki locally