Size

public struct Size : CustomStringConvertible, Equatable

A structure that contains integer width and height values.

  • The width of the size.

    Declaration

    Swift

    public let width: Int
  • The height of the size.

    Declaration

    Swift

    public let height: Int
  • A textual representation of the size.

    Declaration

    Swift

    public var description: String { get }
  • The size whose width and height are both zero.

    Declaration

    Swift

    public static let zero: Size