diff --git a/packages/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts b/packages/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts index 4b26e9fcd..edc8576b2 100644 --- a/packages/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts +++ b/packages/nitrogen/src/syntax/swift/SwiftCxxBridgedType.ts @@ -534,7 +534,7 @@ case ${i}: { () -> ${swiftClosureType} in let __sharedClosure = bridge.share_${bridge.specializationName}(${cppParameterName}) return { ${signature} in - __sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')}) + __sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')}) } }()`.trim() } else { @@ -543,7 +543,7 @@ case ${i}: { () -> ${swiftClosureType} in let __sharedClosure = bridge.share_${bridge.specializationName}(${cppParameterName}) return { ${signature} in - let __result = __sharedClosure.pointee.call(${paramsForward.join(', ')}) + let __result = __sharedClosure.pointee.call(${indent(paramsForward.join(', '), ' ')}) return ${indent(resultBridged.parseFromCppToSwift('__result', 'swift'), ' ')} } }()`.trim() diff --git a/packages/react-native-nitro-image/nitrogen/generated/ios/swift/HybridTestObjectSwiftKotlinSpec_cxx.swift b/packages/react-native-nitro-image/nitrogen/generated/ios/swift/HybridTestObjectSwiftKotlinSpec_cxx.swift index 44630de74..ad1831653 100644 --- a/packages/react-native-nitro-image/nitrogen/generated/ios/swift/HybridTestObjectSwiftKotlinSpec_cxx.swift +++ b/packages/react-native-nitro-image/nitrogen/generated/ios/swift/HybridTestObjectSwiftKotlinSpec_cxx.swift @@ -483,12 +483,12 @@ public class HybridTestObjectSwiftKotlinSpec_cxx { let __sharedClosure = bridge.share_Func_void_std__vector_Powertrain_(callback) return { (__array: [Powertrain]) -> Void in __sharedClosure.pointee.call({ () -> bridge.std__vector_Powertrain_ in - var __vector = bridge.create_std__vector_Powertrain_(__array.count) - for __item in __array { - __vector.push_back(__item) - } - return __vector - }()) + var __vector = bridge.create_std__vector_Powertrain_(__array.count) + for __item in __array { + __vector.push_back(__item) + } + return __vector + }()) } }()) return bridge.create_Result_void_() @@ -922,12 +922,12 @@ public class HybridTestObjectSwiftKotlinSpec_cxx { let __sharedClosure = bridge.share_Func_void_std__optional_double_(callback) return { (__maybe: Double?) -> Void in __sharedClosure.pointee.call({ () -> bridge.std__optional_double_ in - if let __unwrappedValue = __maybe { - return bridge.create_std__optional_double_(__unwrappedValue) - } else { - return .init() - } - }()) + if let __unwrappedValue = __maybe { + return bridge.create_std__optional_double_(__unwrappedValue) + } else { + return .init() + } + }()) } }()) return bridge.create_Result_void_()