Skip to content

CarPlay iOS xcode26.0 b2

Alex Soto edited this page Jun 24, 2025 · 1 revision

#CarPlay.framework

diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h	2025-05-23 07:36:41
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItem.h	2025-06-14 11:42:08
@@ -45,7 +45,7 @@
  See -[CPInterfaceController carTraitCollection].
  */
 - (instancetype)initWithText:(NSString *)text 
-                      images:(NSArray<UIImage *> *)images API_DEPRECATED_WITH_REPLACEMENT("initWithText:elements:allowsMultipleLines:", ios(14.0, 26.0));
+                      images:(NSArray<UIImage *> *)images API_DEPRECATED("Use initWithText:elements:allowsMultipleLines:", ios(14.0, 26.0));
 
 /**
  Initialize a list image row item with a text string, an array of @c UIImage
@@ -68,7 +68,7 @@
  */
 - (instancetype)initWithText:(NSString *)text
                       images:(NSArray<UIImage *> *)images
-                 imageTitles:(NSArray<NSString *> *)imageTitles API_DEPRECATED_WITH_REPLACEMENT("initWithText:elements:allowsMultipleLines:", ios(17.4, 26.0));
+                 imageTitles:(NSArray<NSString *> *)imageTitles API_DEPRECATED("Use initWithText:elements:allowsMultipleLines:", ios(17.4, 26.0));
 
 /**
  Initialize a list image row item with a text string, an array of @c CPListImageRowItemRowElement and a boolean to allow multiple lines in this row.
@@ -164,7 +164,7 @@
  @note The maximum number of images shown is @c CPMaximumNumberOfGridImages.
  If you supply more images, only the first @c CPMaximumNumberOfGridImages will be used.
  */
-@property (nonatomic, strong, readonly) NSArray<UIImage *> *gridImages API_DEPRECATED_WITH_REPLACEMENT("elements", ios(14.0, 26.0));
+@property (nonatomic, strong, readonly) NSArray<UIImage *> *gridImages API_DEPRECATED("No longer supported", ios(14.0, 26.0));
 
 /**
  Update the images displayed in this image row item. If this image row
@@ -196,8 +196,7 @@
 /**
  The array of elements used to draw visible elements.
  */
-
-@property (nonatomic ,copy, readonly) NSArray<CPListImageRowItemElement *> *elements API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos);
+@property (nonatomic, copy) NSArray<CPListImageRowItemElement *> *elements API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos);
 
 /**
  A Boolean value indicating whether the elements should be visible in more than a single line.
diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h	2025-05-30 07:59:50
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCardElement.h	2025-06-15 20:26:35
@@ -26,22 +26,20 @@
  
  UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage.
  
- @note The expected image size is given by +[CPListImageRowItemCardElement maximumImageSize] or by +[CPListImageRowItemCardElement maximumFullHeightImageSize] if @c showImageFullHeight is true. Images provided will be resized to this size if necessary.
+ @note The expected image size is given by +[CPListImageRowItemCardElement maximumImageSize] or by +[CPListImageRowItemCardElement maximumFullHeightImageSize] if @c showsImageFullHeight is true. Images provided will be resized to this size if necessary.
 
- @discussion @c title should be non-nil when @c showImageFullHeight is true.
-
  @discussion To properly size your images, your app should size them to the display scale of the car screen.
  See -[CPInterfaceController carTraitCollection].
  
  @param image The image associated to the element.
- @param showImageFullHeight Determines if the image should entierely cover the card
+ @param showsImageFullHeight Determines if the image should entierely cover the card
  @param title The title of the element.
  @param subtitle The subtitle of the element.
- @param tintColor The color used as background if @c showImageFullHeight is true, part of the gradient color at the bottom of the card otherwise.
+ @param tintColor The color used as background if @c showsImageFullHeight is true, part of the gradient color at the bottom of the card otherwise.
  */
 
 - (instancetype)initWithImage:(UIImage *)image
-          showImageFullHeight:(BOOL)showImageFullHeight
+          showsImageFullHeight:(BOOL)showsImageFullHeight
                         title:(nullable NSString *)title
                      subtitle:(nullable NSString *)subtitle
                     tintColor:(nullable UIColor *)tintColor;
@@ -49,7 +47,7 @@
 /**
  The title associated with this element.
  */
-@property (nonatomic, copy, nullable) NSString *title;
+@property (nonatomic, copy) NSString *title;
 
 /**
  The subtitle associated with this element.
@@ -61,17 +59,17 @@
  
  @discussion Set the value of this property to @c YES to fill the element with the image or @c NO to use a rounded square image that does not fill the card.
  */
-@property (nonatomic, assign, readonly) BOOL showImageFullHeight;
+@property (nonatomic, assign, readonly) BOOL showsImageFullHeight;
 
 /**
- A UIColor used to tint the element. When @c showImageFullHeight is true, the tint color is applied behind the labels at the bottom of the card. Otherwise, this color is part of the gradient color at the bottom of the card.
+ A UIColor used to tint the element. When @c showsImageFullHeight is true, the tint color is applied behind the labels at the bottom of the card. Otherwise, this color is part of the gradient color at the bottom of the card.
 
  If this value is nil, iOS will use secondarySystemBackground color.
  */
 @property (nonatomic, copy, nullable) UIColor *tintColor;
 
 /**
- The expected image size for the image in your @c CPListImageRowItemCardElement when @c showImageFullHeight is false. Images provided
+ The expected image size for the image in your @c CPListImageRowItemCardElement when @c showsImageFullHeight is false. Images provided
  will be resized to this size.
 
  @discussion To properly size your images, your app should size them to the display scale of the car screen.
@@ -80,7 +78,7 @@
 @property (nonatomic, class, readonly) CGSize maximumImageSize;
 
 /**
- The expected image size for the image in your @c CPListImageRowItemCardElement when @c showImageFullHeight is  true. Images provided
+ The expected image size for the image in your @c CPListImageRowItemCardElement when @c showsImageFullHeight is  true. Images provided
  will be resized to this size.
  
  @discussion To properly size your images, your app should size them to the display scale of the car screen.
diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h	2025-05-30 07:59:51
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemCondensedElement.h	2025-06-15 20:26:36
@@ -11,20 +11,20 @@
 NS_ASSUME_NONNULL_BEGIN
 
 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macos, watchos)
-
 /**
  Types of shape used to draw a condensed row element.
  */
-typedef NS_ENUM(NSUInteger, CPListImageRowItemCondensedElementShape) {
+typedef NS_ENUM(NSInteger, CPListImageRowItemCondensedElementShape) {
     /**
      The list item will render an element with a circular image.
      */
-    CPListImageRowItemCondensedElementShapeCircular,
+    CPListImageRowItemCondensedElementShapeCircular NS_SWIFT_NAME(circular),
+
     /**
-     The list item will render an element with a rounded square image.
+     The list item will render an element with a rounded rectangle image.
      */
-    CPListImageRowItemCondensedElementShapeRoundedSquare
-};
+    CPListImageRowItemCondensedElementShapeRoundedRectangle NS_SWIFT_NAME(roundedRectangle),
+} NS_SWIFT_NAME(CPListImageRowItemCondensedElement.Shape);
 
 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macos, watchos)
 CARPLAY_TEMPLATE_UI_ACTOR
diff -ruN /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h
--- /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h	2025-05-30 07:59:51
+++ /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CarPlay.framework/Headers/CPListImageRowItemImageGridElement.h	2025-06-15 20:26:36
@@ -14,18 +14,18 @@
 /**
  Types of shape used to draw a list item.
  */
-typedef NS_ENUM(NSUInteger, CPListImageRowItemImageGridElementShape) {
+typedef NS_ENUM(NSInteger, CPListImageRowItemImageGridElementShape) {
     /**
      The list item will render a row of elements.
      */
-    CPListImageRowItemImageGridElementShapeCircular = 0,
-    CPListImageRowItemImageGridShapeCircular = 0,
+
+    CPListImageRowItemImageGridElementShapeCircular NS_SWIFT_NAME(circular),
+
     /**
      The list item will render a condensed list of rounded rectangle elements.
      */
-    CPListImageRowItemImageGridElementShapeRoundedRectangle = 1,
-    CPListImageRowItemImageGridShapeRoundedRectangle = 1,
-};
+    CPListImageRowItemImageGridElementShapeRoundedRectangle NS_SWIFT_NAME(roundedRectangle),
+} NS_SWIFT_NAME(CPListImageRowItemImageGridElement.Shape);
 
 API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(tvos) API_UNAVAILABLE(macos, watchos)
 CARPLAY_TEMPLATE_UI_ACTOR
@@ -48,10 +48,24 @@
  
  @param image The image associated to the element.
  @param imageShape The @c CPListImageRowItemImageGridElementShape shape being applied on the image.
+ @param title The title of the element.
+ @param accessorySymbolName The system symbol used as an accessory view.
  */
 
 - (instancetype)initWithImage:(UIImage *)image
-                   imageShape:(CPListImageRowItemImageGridElementShape)imageShape;
+                   imageShape:(CPListImageRowItemImageGridElementShape)imageShape
+                        title:(NSString *)title
+          accessorySymbolName:(nullable NSString *)accessorySymbolName;
+
+/**
+ The title associated with this element.
+ */
+@property (nonatomic, copy) NSString *title;
+
+/**
+ The name of the system symbol image to use as accessory.
+ */
+@property (nonatomic, copy, nullable) NSString *accessorySymbolName;
 
 /**
  Shape used to draw the image of the element.
Clone this wiki locally