using System; using static Veldrid.MetalBindings.ObjectiveCRuntime; namespace Veldrid.MetalBindings { public struct UIView { public readonly IntPtr NativePtr; public UIView(IntPtr ptr) => NativePtr = ptr; public CALayer layer => objc_msgSend(NativePtr, "layer"); public CGRect frame => CGRect_objc_msgSend(NativePtr, "frame"); } }