You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftJavaDocumentation/Documentation.docc/index.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,21 @@ Please refer to articles about the specific direction of interoperability you ar
11
11
12
12
### Getting started
13
13
14
-
TODO: Some general intro
14
+
**SwiftJava** provides a set of tools and libraries to enable Java and Swift interoperability. It allows developers to generate bindings to either language from the other, by using either source generation (for Java consuming Swift code) or a combination of Swift macros and source generation (for Swift consuming Java libraries).
15
15
16
-
If you prefer a video introduction, you may want to this
16
+
The generated code is highly efficient and less error-prone than manually mapping, and also guarantees memory safety across the boundaries between the languages.
17
+
18
+
Reasons why you might want to reach for Swift and Java interoperability include, but are not limited to, the following scenarios:
19
+
- Incremental adoption of Swift in an existing Java codebase
20
+
- Reuse existing libraries which exist in one ecosystem, but don't have a direct equivalent in the other
21
+
22
+
SwiftJava is offering several core libraries which support language interoperability:
23
+
-`JavaKit` (Swift -> Java) - JNI-based support library and Swift macros
24
+
-`SwiftKit` (Java -> Swift) - Support library for Java calling Swift code (either using JNI or FFM)
25
+
-`swift-java` - command line tool; Supports source generation and also dependency management operations
26
+
- Build tool integration - SwiftPM Plugin
27
+
28
+
If you prefer a video introduction, you may want to watch this
17
29
[Explore Swift and Java interoperability](https://www.youtube.com/watch?v=QSHO-GUGidA)
18
30
WWDC 2025 session,
19
31
which is a quick overview of all the features and approaches offered by SwiftJava.
@@ -25,7 +37,7 @@ which is a quick overview of all the features and approaches offered by SwiftJav
0 commit comments