Skip to content

QuartzCore iOS xcode13.0 rc

Manuel de la Pena edited this page Sep 20, 2021 · 2 revisions

#QuartzCore.framework ##mandel

diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h	2021-08-09 03:21:53.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h	2021-08-25 13:17:08.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,12 @@
 
 @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
 
diff -ruN /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h	2021-08-09 03:24:51.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h	2021-08-25 14:05:08.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,8 +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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h	2021-08-25 14:05:08.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/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h
--- /Applications/Xcode_13.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h	2021-08-01 16:37:07.000000000 -0400
+++ /Applications/Xcode_13.0.0-rc.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h	2021-08-20 00:08:54.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