Skip to content

CoreGraphics iOS xcode15.0 b1

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

#CoreGraphics.framework https://github.com/xamarin/xamarin-macios/pull/18838

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2023-03-09 19:08:12
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h	2023-05-19 21:12:14
@@ -439,6 +439,8 @@
 CG_EXTERN bool CGColorSpaceSupportsOutput(CGColorSpaceRef space)
 CG_AVAILABLE_STARTING(10.12, 10.0);
 
+/*  CGColorSpaceCopyPropertyList will return NULL for special color spaces
+    (e.g. kCGColorSpaceDeviceN or kCGColorSpacePattern), except Indexed Color Space */
 CG_EXTERN CFPropertyListRef __nullable
 CGColorSpaceCopyPropertyList(CGColorSpaceRef space)
 CG_AVAILABLE_STARTING(10.12, 10.0);
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h	2023-03-09 19:13:19
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h	2023-05-26 00:39:35
@@ -751,6 +751,19 @@
     CGPoint endCenter, CGFloat endRadius, CGGradientDrawingOptions options)
     CG_AVAILABLE_STARTING(10.5, 2.0);
 
+/* Fill the current clipping region of `context' with a conic gradient
+   defined by the center point and rotation angle. The location 0 of `gradient'
+   corresponds to a initial rotation angle; the location 1 of `gradient'
+   corresponds to 360 degrees rotation from rotation angle; colors are linearly
+   interpolated over the full angle based on the values of the gradient's
+   locations. The 0 angle corresponds to positive x axis. The angle increases
+   towards positive y axis. */
+
+CG_EXTERN void CGContextDrawConicGradient(CGContextRef _Nonnull c,
+    CGGradientRef _Nullable gradient, CGPoint center, CGFloat angle)
+    CG_AVAILABLE_STARTING(14.0, 17.0);
+
+
 /* Fill the current clipping region of `context' with `shading'. */
 
 CG_EXTERN void CGContextDrawShading(CGContextRef cg_nullable c,
Clone this wiki locally