Skip to content

Commit

Permalink
doc(docs.topics.native.appleFramework): add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredo-toledano committed Nov 30, 2024
1 parent 1b66956 commit 2af4135
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/topics/native/apple-framework.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[//]: # (title: Kotlin/Native as an Apple framework – tutorial)

> The Objective-C libraries import is [Experimental](components-stability.md#stability-levels-explained).
> All Kotlin declarations generated by the `cinterop` tool from Objective-C libraries
> should have the `@ExperimentalForeignApi` annotation.
>
> Native platform libraries shipped with Kotlin/Native (like Foundation, UIKit, and POSIX),
> require opt-in only for some APIs. In such cases, you get an IDE warning.
>
{type="warning"}
* Objective-C libraries
* import [Experimental](/docs/topics/components-stability.md#stability-levels-explained)
* Kotlin declarations / generated from Objective-C libraries -- via the -- `cinterop` tool
* SHOULD have the `@ExperimentalForeignApi` annotation

* Native platform libraries / shipped with Kotlin/Native (like Foundation, UIKit, and POSIX)
* require opt-in only / SOME APIs

* TODO:
Kotlin/Native provides bi-directional interoperability with Objective-C/Swift.
Objective-C frameworks and libraries can be used in Kotlin code.
Kotlin modules can be used in Swift/Objective-C code too.
Expand Down

0 comments on commit 2af4135

Please sign in to comment.