public static SKRect WindowPosition(this NativeView @this) { var rect = new NativeRect(); #if __IOS__ //TODO : recurive parent call to get root view ? rect = (NativeRect)@this.Superview?.ConvertRectToView(@this.Frame, toView: null);//TODO @this.SafeAreaInsets #elif __ANDROID__ @this.GetGlobalVisibleRect(rect); #endif return(SKRect.Create((float)rect.Left, (float)rect.Top, (float)rect.Right, (float)rect.Bottom)); }