uniffi-rs icon indicating copy to clipboard operation
uniffi-rs copied to clipboard

Refactor Swift FFI type handling

Open bendk opened this issue 3 years ago • 1 comments

The type_ffi filter on swift is a bit confusing and should be refactored. It currently outputs the type that we want to use in the header file (e.g. int32_t). This is different than all the other bindings, which outputs the type that lower() returns (Int32 in this case).

┆Issue is synchronized with this Jira Task ┆friendlyId: UNIFFI-113

bendk avatar Nov 18 '21 21:11 bendk

I wonder if this should prompt us to break the file in to a gen_swift and gen_header files, with two different filters modules?

use  super::header_filters as filters;

jhugman avatar Nov 19 '21 17:11 jhugman

This was fixed by #1106.

bendk avatar Jun 22 '23 14:06 bendk