Contents

init(exactWidth:height:)

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

Declaration

init?<T>(exactWidth: T, height: T) where T : BinaryFloatingPoint

Parameters

  • exactWidth:

    The width.

  • height:

    The height.

Discussion

The height and width must be greater than 0 and exactly representable as an Int value.

See Also

Initializers