Skip to content

keeshux/cross-platform-swift

Repository files navigation

Cross-platform Swift

These are excerpts from my (ongoing) series about cross-platform Swift:

https://davidederosa.com/cross-platform-swift/

The series revolves around how I'm porting Passepartout, my Swift/SwiftUI VPN client, beyond the Apple ecosystem.

Simple apps

The simple applications are the final outcome of the series: native frontends with a shared, cross-platform Swift library.

All apps share the simple-library target.

Samples

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.

Contributors

Languages