Add basic Xamarin.iOS support #280

Closed
rmarinho wants to merge 20 commits from add-xamarin-ios into master
293 changed files with 2974 additions and 24205 deletions
Showing only changes of commit a316917097 - Show all commits

View File

@@ -7,20 +7,6 @@ using UIKit;
namespace Facebook.Yoga.iOS.Test
{
public static class UIViewYogaExtensions
{
public static void ApplyYogaLayout(this UIView view, YogaNode n)
{
view.Frame = new CGRect(n.LayoutX, n.LayoutY, n.LayoutWidth, n.LayoutHeight);
// This assumes your YogaNode and NSView children were inserted in same order
for (int i = 0; i < n.Count; ++i)
{
YogaNode childNode = n[i];
view.Subviews[i].Frame = new CGRect(childNode.LayoutX, childNode.LayoutY, childNode.LayoutWidth, childNode.LayoutHeight);
}
}
}
public partial class ViewController : UIViewController
{
protected ViewController(IntPtr handle) : base(handle)