Contents

init(width:height:)

Creates a size with dimensions specified as integer values.

Declaration

init(width: Int, height: Int)

Parameters

  • width:

    The width.

  • height:

    The height.

Discussion

The height and width must be greater than 0.

See Also

Initializers