CGSize
public extension CGSize
Adds calculations to the CGSize struct.
-
Returns the diagonal size of a rectangular size.
Declaration
Swift
var diagonal: CGFloat { get }
Rift Valley Software Generic Swift Toolbox
public extension CGSize
Adds calculations to the CGSize struct.
Returns the diagonal size of a rectangular size.
Swift
var diagonal: CGFloat { get }