These are excerpts from my (ongoing) series about cross-platform Swift:
https://davidederosa.com/cross-platform-swift/
The series is about how I'm porting Passepartout, my Swift/SwiftUI VPN client, beyond the Apple ecosystem.
Simple replacements for Combine subjects with AsyncStream and Swift 6 Concurrency. The motivations are described in this article.
Examples of typical situations involved in Swift/C interop. Showcase the use of opaque pointers. Read these articles for more insights.
Patterns to expose a C ABI from a Swift library to a non-Swift application. Read the articles about integration.