Binding iOS Libraries
Let us know how you feel about this.
How to make iOS native libraries (and CocoaPods) accessible in Xamarin apps.
Follow these links to learn about binding Objective-C libraries and CocoaPods for Xamarin.iOS and Xamarin.Mac:
- Overview - Describes how binding works.
- Binding Objective-C Libraries - Instructions on how to bind Objective-C libraries for use in Xamarin projects.
- Type Definition Reference Guide - Describes all of the attributes available to binding authors to drive the binding generation process.
Objective Sharpie is a command line tool to help bootstrap the first pass of a binding. It works by parsing the header files of a native library to map the public API into the binding definition (a process that is otherwise done manually). Objective Sharpie does not create a binding by itself, but it can help get you started!
Objective Sharpie 3.0 introduced the ability to bind Cocoapods directly!
This page provides a step-by-step walkthrough of creating an iOS binding project using the open source InfColorPicker Objective-C project as an example. The InfColorPicker library provides a reusable view controller that allow the user to select a color based on its HSB representation, making color selection more user-friendly. Objective Sharpie will be used to assist in the binding process.