CGSize

public extension CGSize

Adds calculations to the CGSize struct.

  • Returns the diagonal size of a rectangular size.

    Declaration

    Swift

    var diagonal: CGFloat { get }