Add basic Xamarin.iOS support

This commit is contained in:
Rui Marinho
2016-12-08 19:09:02 +00:00
parent 25b206ac53
commit 00e862173c
20 changed files with 812 additions and 9 deletions

View File

@@ -540,7 +540,7 @@ namespace Facebook.Yoga
long output = _measureFunction(this, width, widthMode, height, heightMode);
return new YogaSize { width = MeasureOutput.GetWidth(output), height = MeasureOutput.GetHeight(output) };
}
#if !__IOS__
public string Print(YogaPrintOptions options =
YogaPrintOptions.Layout|YogaPrintOptions.Style|YogaPrintOptions.Children)
{
@@ -551,7 +551,7 @@ namespace Facebook.Yoga
YogaLogger.Logger = orig;
return sb.ToString();
}
#endif
public IEnumerator<YogaNode> GetEnumerator()
{
return _children != null ? ((IEnumerable<YogaNode>)_children).GetEnumerator() :