Skip to content

Conversation

danil-pavlov
Copy link
Contributor

This PR updates Obj-C/Swift interop page for the 2.2.20 release, following KT-77488 [ObjCExport] Add explicit ObjCBlock parameter name in objc export

@danil-pavlov danil-pavlov requested a review from a team as a code owner August 18, 2025 12:54
foo {
bar($0 as! Int32)
return KotlinUnit()
}
```

#### Explicit names in block types

You can add explicit names to Kotlin's block types for exported Objective-C headers. Without them, Xcode's autocompletion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace "block" with "function".

foo {
bar($0 as! Int32)
return KotlinUnit()
}
```

#### Explicit names in block types

You can add explicit names to Kotlin's block types for exported Objective-C headers. Without them, Xcode's autocompletion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess calling generated ObjC from ObjC in XCode? As said below it doesn't affect calling from Swift, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants