I already have a WatchOSExtension developed under swift, is it possible to connect it to a newely developed xamarin ios project?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No, it is not possible to use a Swift extension with a Xamarin app - this also applies to any form of iOS extension.
You will need to redo your extension with Xamarin. Documentation for watchOS can be found here: https://developer.xamarin.com/guides/ios/watch/getting-started/
回答2:
I think the watch extension needs to be compiled into the the app bundle so I dont think this can be done (compile swift code into c#, i may be wrong). They also need references to each other see here.
Its like saying "I have found some swift code can I just put this into my xamarin app and it will work?"