askingPPl
askingPPl

Reputation: 263

How to use swift in xamarin iOS

I am trying to make use of an swift based iOS Framework in xamarin.iOS

But after some research, I found that xamarin doesn't support swift language using Embedding Mono too.

How can I make use of Framework in Xamarin.iOS ?

Upvotes: 2

Views: 1523

Answers (1)

Durai Amuthan.H
Durai Amuthan.H

Reputation: 32280

Binding Objective C based static library is officially supported in Xamarin.

But there is no official support for Swift based framework in Xamarin.iOS

  1. You can import Swift based framework in Objective C based project and
    you can expose the APIs using Objective C and you can convert that into .a static library then you can turn that static library into a binding library in xamarin studio and make use of that in xamarin

  2. Try porting the Swift to C# and it should be faster as well

Upvotes: 8

Related Questions