From 9ae9be3f0d5f69552f5e06992bffff7dda8c6a63 Mon Sep 17 00:00:00 2001 From: CodemodService Bot Date: Thu, 21 Aug 2025 09:05:07 -0700 Subject: [PATCH] Fix CQS signal modernize-use-designated-initializers in xplat/js/react-native-github/packages [B] [A] [A] Reviewed By: cipolleschi Differential Revision: D80713611 --- .../ios/react/renderer/graphics/RCTPlatformColorUtils.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm index 3e037710add5..4e79aa4dab44 100644 --- a/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm +++ b/packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/RCTPlatformColorUtils.mm @@ -184,7 +184,7 @@ { CGFloat rgba[4]; [color getRed:&rgba[0] green:&rgba[1] blue:&rgba[2] alpha:&rgba[3]]; - return {(float)rgba[0], (float)rgba[1], (float)rgba[2], (float)rgba[3]}; + return {.red = (float)rgba[0], .green = (float)rgba[1], .blue = (float)rgba[2], .alpha = (float)rgba[3]}; } facebook::react::ColorComponents RCTPlatformColorComponentsFromSemanticItems(std::vector &semanticItems)