18 lines
255 B
Swift
18 lines
255 B
Swift
|
|
//
|
||
|
|
// CGPoint+Utils.swift
|
||
|
|
// SBrowser
|
||
|
|
//
|
||
|
|
// Created by James Magahern on 7/23/20.
|
||
|
|
//
|
||
|
|
|
||
|
|
import Foundation
|
||
|
|
|
||
|
|
extension CGRect
|
||
|
|
{
|
||
|
|
var center: CGPoint {
|
||
|
|
get {
|
||
|
|
return CGPoint(x: size.width / 2.0, y: size.height / 2.0)
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|