Skip to content

CoreFoundation iOS xcode26.4 b2

Rolf Bjarne Kvinge edited this page Feb 27, 2026 · 1 revision

#CoreFoundation.framework

diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2025-11-09 02:40:14
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h	2026-02-16 05:46:30
@@ -349,6 +349,51 @@
 #  define CF_SWIFT_UNAVAILABLE_FROM_ASYNC(msg)
 #endif
 
+#if __has_attribute(swift_attr)
+#  define CF_SWIFT_MAIN_ACTOR __attribute__((swift_attr("@MainActor")))
+#else
+#  define CF_SWIFT_MAIN_ACTOR
+#endif
+
+#define __CF_HEADER_AUDIT_BEGIN_nullability _Pragma("clang assume_nonnull begin")
+#define __CF_HEADER_AUDIT_END_nullability   _Pragma("clang assume_nonnull end")
+
+#if __SWIFT_ATTR_SUPPORTS_SENDABLE_DECLS
+// Indicates that the thing it is applied to should be imported as 'Sendable' in Swift:
+// * Type declarations are imported into Swift with a 'Sendable' conformance.
+// * Block parameters are imported into Swift with an '@Sendable' function type. (Write it in the same place you would put 'CF_NOESCAPE'.)
+// * 'id' parameters are imported into Swift as 'Sendable', not 'Any'.
+// * Other object-type parameters are imported into Swift with an '& Sendable' requirement.
+#  define CF_SWIFT_SENDABLE __attribute__((swift_attr("@Sendable")))
+
+// Indicates that the thing it is applied to should *not* be imported as 'Sendable' in Swift even if it normally would be.
+#  define CF_SWIFT_NONSENDABLE __attribute__((swift_attr("@_nonSendable")))
+
+// Indicates that a specific member of an 'CF_SWIFT_UI_ACTOR'-isolated type is "threadsafe" and should be callable from outside the main actor.
+#  define CF_SWIFT_NONISOLATED __attribute__((swift_attr("nonisolated")))
+
+#  define __CF_HEADER_AUDIT_BEGIN_sendability _Pragma("clang attribute CF_HEADER_AUDIT_sendability.push (__attribute__((swift_attr(\"@_nonSendable(_assumed)\"))), apply_to = any(objc_interface, record, enum))")
+#  define __CF_HEADER_AUDIT_END_sendability   _Pragma("clang attribute CF_HEADER_AUDIT_sendability.pop")
+#else
+#  define CF_SWIFT_SENDABLE
+#  define CF_SWIFT_NONSENDABLE
+#  define CF_SWIFT_NONISOLATED
+
+#  define __CF_HEADER_AUDIT_BEGIN_sendability
+#  define __CF_HEADER_AUDIT_END_sendability
+#endif
+
+#define __CF_HEADER_AUDIT_BEGIN1(_1) __CF_HEADER_AUDIT_BEGIN_##_1
+#define __CF_HEADER_AUDIT_BEGIN2(_1, _2) __CF_HEADER_AUDIT_BEGIN1(_1) __CF_HEADER_AUDIT_BEGIN1(_2)
+
+#define __CF_HEADER_AUDIT_END1(_1) __CF_HEADER_AUDIT_END_##_1
+#define __CF_HEADER_AUDIT_END2(_1, _2) __CF_HEADER_AUDIT_END1(_1) __CF_HEADER_AUDIT_END1(_2)
+
+#define __CF_HEADER_AUDIT_GET_MACRO(_2, _1, NAME, ...) NAME
+
+#define CF_HEADER_AUDIT_BEGIN(...) __CF_HEADER_AUDIT_GET_MACRO(__VA_ARGS__, __CF_HEADER_AUDIT_BEGIN2, __CF_HEADER_AUDIT_BEGIN1, 0)(__VA_ARGS__)
+#define CF_HEADER_AUDIT_END(...) __CF_HEADER_AUDIT_GET_MACRO(__VA_ARGS__, __CF_HEADER_AUDIT_END2, __CF_HEADER_AUDIT_END1, 0)(__VA_ARGS__)
+
 #if __has_attribute(noescape)
 #define CF_NOESCAPE __attribute__((noescape))
 #else
diff -ruN /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h
--- /Applications/Xcode_26.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	2025-11-09 03:00:26
+++ /Applications/Xcode_26.4.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h	2026-02-16 07:42:15
@@ -47,6 +47,7 @@
 
 /* Points. */
 struct
+CF_SWIFT_SENDABLE
 CGPoint {
     CGFloat x;
     CGFloat y;
@@ -55,7 +56,7 @@
 
 /* Sizes. */
 
-struct CGSize {
+struct CF_SWIFT_SENDABLE CGSize {
     CGFloat width;
     CGFloat height;
 };
@@ -65,7 +66,7 @@
 
 #define CGVECTOR_DEFINED 1
 
-struct CGVector {
+struct CF_SWIFT_SENDABLE CGVector {
     CGFloat dx;
     CGFloat dy;
 };
@@ -73,7 +74,7 @@
 
 /* Rectangles. */
 
-struct CGRect {
+struct CF_SWIFT_SENDABLE CGRect {
     CGPoint origin;
     CGSize size;
 };
@@ -87,7 +88,7 @@
 
 typedef struct CGAffineTransform CGAffineTransform;
 
-struct CGAffineTransform {
+struct CF_SWIFT_SENDABLE CGAffineTransform {
     CGFloat a, b, c, d;
     CGFloat tx, ty;
 };
@@ -104,7 +105,7 @@
 typedef struct CGAffineTransformComponents CGAffineTransformComponents
     CF_SWIFT_NAME(CGAffineTransform.Components);
 
-struct CGAffineTransformComponents {
+struct CF_SWIFT_SENDABLE CGAffineTransformComponents {
 
     /* initial scaling in X and Y dimensions. {sx,sy} */
     /* Negative values indicate the image has been flipped in this dimension. */

Clone this wiki locally