DEV Community

griffin-stewie
griffin-stewie

Posted on

Test Post

Gif

extension CGRect {
    public init(center: CGPoint, size: CGSize) {
        origin = CGPoint(x: center.x-size.width/2, y: center.y-size.height/2)
        self.size = size
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)