3

I'm trying to bind this Folding Cell to an Xamarin project but don't see the *.a file mentioned in these directions.

sudo gem install cocoapods
sharpie pod init ios FoldingCell
sharpie pod bind

As indicated at the bottom of the page, I should follow these directions to make a binding project, but the directions require the *.a file.

Since I have the source of the FoldingCell framework, I know I can likely make the changes needed.

(Disclaimer, all of my iOS work is with Xamarin, not XCode)

makerofthings7
  • 60,103
  • 53
  • 215
  • 448
  • Update - I had the same missing *.a file with this project by the same author: https://github.com/Ramotion/animated-tab-bar – makerofthings7 Jun 19 '16 at 22:39
  • Possible duplicate of [How to create a MonoTouch binding from a .framework](http://stackoverflow.com/questions/10586342/how-to-create-a-monotouch-binding-from-a-framework) – Jason Jun 19 '16 at 23:43

2 Answers2

5

Binding Swift libraries is not officially supported, but you can find a documentation on how to do it:

https://medium.com/@Flash3001/binding-swift-libraries-xamarin-ios-ff32adbc7c76

Same answer is given in: Using Swift library in Xamarin

Lucas Teixeira
  • 704
  • 8
  • 11
3

Unfortunately FoldingCell is a swift library and Xamarin.iOS does not have built in support for that yet. Currently (as June 2016) you have two options:

  1. Port FoldingCell.swift to C# or F#
  2. Create an ObjC framework to bridge swift and bind that, unfortunately I do not have a tutorial on how to do that but you can use your favourite search engine to look on how to bridge Objective-C and Swift. Note that this option is iOS 8+.

Hope this gets you in the right direction.

dalexsoto
  • 3,412
  • 1
  • 27
  • 43