Link Search Menu Expand Document

Size

A structure that contains width and height values.

public struct Size 

Inheritance

CustomDebugStringConvertible

Initializers

init()

Creates a size with zero width and height.

public init() 

init(width:height:)

Creates a size with dimensions specified as floating-point values.

public init(width: Double, height: Double) 

init(width:height:)

public init(width: Int, height: Int) 

Properties

width

A width value.

public var width: Double

height

A height value.

public var height: Double

zero

The size whose width and height are both zero.

public static var zero: Size 

debugDescription

public var debugDescription: String