Skip to content

ImageIO iOS xcode27.0 b5

Alex Soto edited this page Aug 10, 2026 · 1 revision

#ImageIO.framework

diff -ruN /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h
--- /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h	2026-07-11 03:48:19
+++ /Applications/Xcode_27.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h	2026-08-04 03:24:11
@@ -156,6 +156,42 @@
  */
 IMAGEIO_EXTERN const CFStringRef kCGImageSourceShouldAllowFloat  IMAGEIO_AVAILABLE_STARTING(10.4, 4.0);
 
+/* A Boolean value that indicates whether to prioritize image quality over
+ * decode speed. Currently, image sources support this option only for camera
+ * RAW images. The value of this key must be a CFBooleanRef; the default value
+ * is kCFBooleanFalse. */
+
+/**
+ * A Boolean value that indicates whether to prioritize image quality over decode speed.
+ *
+ * When you set this key to <doc://com.apple.documentation/documentation/corefoundation/kcfbooleantrue>, the image source decodes the full-size image using the highest-quality decode method available for the file. The value of this key is a <doc://com.apple.documentation/documentation/corefoundation/cfboolean>. The default value is <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>.
+ *
+ * Currently, image sources support this option only for camera RAW images. This key is a no-op when it is absent or <doc://com.apple.documentation/documentation/corefoundation/kcfbooleanfalse>, when the image isn't a camera RAW format, or when no higher-quality decode method is available, so it is always safe to set.
+ *
+ * Include this key in the options dictionary you pass to the functions ``CGImageSourceCopyPropertiesAtIndex(_:_:_:)`` and ``CGImageSourceCreateImageAtIndex(_:_:_:)``.
+ *
+ * ## Example
+ * @TabNavigator {
+ *   @Tab("Swift") {
+ *     ```swift
+ *     let options = [
+ *         kCGImageSourcePrioritizeQuality: true
+ *     ] as CFDictionary
+ *     let image = CGImageSourceCreateImageAtIndex(source, 0, options)
+ *     ```
+ *   }
+ *   @Tab("Objective-C") {
+ *     ```objc
+ *     NSDictionary *options = @{
+ *         (id)kCGImageSourcePrioritizeQuality: @YES
+ *     };
+ *     CGImageRef image = CGImageSourceCreateImageAtIndex(source, 0, (CFDictionaryRef)options);
+ *     ```
+ *   }
+ * }
+ */
+IMAGEIO_EXTERN const CFStringRef kCGImageSourcePrioritizeQuality  IMAGEIO_AVAILABLE_STARTING(27.0, 27.0, 27.0, 27.0);
+
 /** Keys for the options dictionary of
  ** "CGImageSourceCreateThumbnailAtIndex". **/
 

Clone this wiki locally