[HN Gopher] Native Swift on Android, Part 2: Your First Swift An...
       ___________________________________________________________________
        
       Native Swift on Android, Part 2: Your First Swift Android App
        
       Author : serial_dev
       Score  : 13 points
       Date   : 2024-12-04 14:15 UTC (8 hours ago)
        
 (HTM) web link (skip.tools)
 (TXT) w3m dump (skip.tools)
        
       | aatd86 wrote:
       | Is the bridge something that was necessary to translate framework
       | API from one language to another?
       | 
       | The rest being handled by pure translationnof language
       | constructs?
        
         | marcprux wrote:
         | The bridge handles communicating between the compiled Swift and
         | the Java/Kotlin environment that all Android apps are contained
         | within. This enables your Swift to be invoked from your UI
         | layer (such as Jetpack Compose), and also enables your Swift to
         | call out to the Android Java SDK or any other Java/Kotlin
         | dependencies your project may have.
         | 
         | The bridging is designed to work alongside SkipUI, which is the
         | SwiftUI that is transpiled into Jetpack Compose (see
         | https://news.ycombinator.com/item?id=41384144 and the other
         | Skip docs). But you don't necessarily need to use our
         | transpiled UI layer to benefit from it: any Android project can
         | embed the compiled Swift as a dependency and call into code
         | that is exposed through a Kotlin interface.
         | 
         | Happy to answer any other questions. I am the author of the
         | article.
        
       ___________________________________________________________________
       (page generated 2024-12-04 23:01 UTC)