Skip to content

Commit

Permalink
add frame method for RenderNodeChild
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed May 14, 2024
1 parent 2657e06 commit bb8dc53
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ public struct RenderNodeChild {
self.index = index
}
}

extension RenderNodeChild {
public var frame: CGRect {
CGRect(origin: position, size: renderNode.size)
}
}

0 comments on commit bb8dc53

Please sign in to comment.