-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Labels
User StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.area-SwiftBindingsSwift bindings for .NETSwift bindings for .NET
Description
Hey there.
We are currently struggling a bit with the support of Swift in MAUI. We have a library which doesn't expose a ObjectiveC interface but we are in dire need of a binding library for a 3rd party product. After failing to use other tools I stumbled over the feature/swift-bindings
branch in this repository and it kind-a looks promising.
As Microsoft has not really published yet any details on Swift interopability support but there seem to be a lot ongoing in development:
- Runtime support for Swift Interop in .NET 9 runtime#93631
- Runtime support for Swift Interop in .NET 10 runtime#108662
I understand the "experimental" nature of the ongoing development but still would have following questions and inputs:
- It seems the binding generator currently expects a dylib to be sitting beside the
.abi.json
, in the Cocoapod we wanna use, there is no dylib in the package. (Notificare, Cocoapod). I wonder if this is currently just a simplification or there is a design problem there. I saw that the dylib is only needed in some special scenario but still it is required to exist. - Despite net9.0 being close, there still seem to be items shifted to net10.0. This raises the question to me: Assuming I manage to get some reasonable bindings generated, should the output already work in net8.0? If yes, I could maybe also just fix and adjust manually the bindings to the expected code structure. Unfortunately there are on guides on how you could do manually what the generator is trying to do.
Any help is highly appreciated so we could create some wrapper for the iOS library we need.
Metadata
Metadata
Assignees
Labels
User StoryA single user-facing feature. Can be grouped under an epic.A single user-facing feature. Can be grouped under an epic.area-SwiftBindingsSwift bindings for .NETSwift bindings for .NET