tquic icon indicating copy to clipboard operation
tquic copied to clipboard

Support APIs for the Swift language

Open iyangsj opened this issue 2 years ago • 1 comments

Reference: https://mozilla.github.io/uniffi-rs/

iyangsj avatar Nov 01 '23 07:11 iyangsj

Hi! I've taken a look and noticed, that there are already headers in "include" directory which can be used from C easily.

In case of Swift, it may be easier to create an .xcframework which will contain: the binary itself, the .h file, and the Swift bindings which can be hand-written to have "Swifter" user-facing API. Then, it can be consumed by users via Cocoapods or SwiftPM and provide smooth UX.

(That's an alternative to UniFFI approach, which has it's pros and cons)

delneg avatar Nov 27 '23 13:11 delneg