~/talk

Simplified Swift Multiplatform Integration

Talkat droidcon New York 2022 · 2022-09-01..09-02· [kotlin, ios]
links:none on file
slides:none on file

Shows how to access Swift-only Apple APIs by wrapping Swift in an Objective‑C API and pulling it into Kotlin Multiplatform via a CocoaPods plugin, using @objc on NSObjects and Gradle to emit a podspec. Demonstrates a logging library (two public methods, unified logging via iOS 14) that initially fails linkage but runs after a linker-flag workaround, and a tiny Kotlin calculator built as an XCFramework and consumed by Swift using Swift Package Manager, all verified working.

AI-written summary · about

  1. 0:00Introduction to Swift-Kotlin integration
  2. 3:27C compatibility with Kotlin Native
  3. 8:40Creating local CocoaPods
  4. 11:53Bridging Swift to Objective-C
  5. 14:59Building a multiplatform logging module
  6. 17:27Demo: Logging from Kotlin to Swift
  7. 20:17Error handling in Swift-Kotlin bridges
  8. 22:23Kotlin to Swift with Swift Package Manager
  9. 25:08Demo: Kotlin calculator in Swift
  10. 30:52Summary and key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.