Development9 views

Swift 6.3 Adds Official Android Support and C Integration

Swift 6.3: A New Era for Cross-Platform Development

Apple has released Swift 6.3, introducing a stable SDK for Android. This strategic update allows developers to build native Android apps or integrate Swift logic into existing Kotlin and Java projects via the Swift Java and Swift Java JNI Core libraries.

Enhanced Interoperability and System Support

The update significantly improves workflows for system developers:

  • C Integration: The new @c attribute automates the exposure of Swift functions and enums to C/C++, eliminating manual header creation.
  • Embedded Swift: Support for low-power hardware and microcontrollers.
  • Swift Build: A preview of a unified build experience across different operating systems.

Testing and Documentation Improvements

Swift 6.3 also enhances the Swift Testing framework with better control over test cancellations and image attachments. Additionally, the DocC documentation compiler now supports improved markdown and static HTML exports.