diff --git a/Sources/UIComponent/Core/Model/RenderNode/RenderNodeChild.swift b/Sources/UIComponent/Core/Model/RenderNode/RenderNodeChild.swift index d8dfeec..aee1eb5 100644 --- a/Sources/UIComponent/Core/Model/RenderNode/RenderNodeChild.swift +++ b/Sources/UIComponent/Core/Model/RenderNode/RenderNodeChild.swift @@ -26,3 +26,9 @@ public struct RenderNodeChild { self.index = index } } + +extension RenderNodeChild { + public var frame: CGRect { + CGRect(origin: position, size: renderNode.size) + } +}