Skip to content
Discussion options

You must be logged in to vote

The way we solved this was by creating a swift framework in XCode for our C++ code and then by following the instructions below to call the framework from our .NET 7 MAUI based application.

To ensure that Swift functionality is accessible from C# code in your .NET MAUI app, follow these steps:

  1. Verify Binding Library Configuration:

    • Confirm that your .NET 7 iOS Binding Library (which bridges the Swift framework and C#) is correctly configured.
    • Ensure that the Swift framework is properly referenced in your binding library project.
  2. Create C# Bindings:

    • In your binding library, create C# bindings for the Swift classes, methods, and properties you want to use.
    • Use the [Bind] attribute to …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agingo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant