Size

public struct Size

Represents a size of geometrical figures.

  • Initializes a new size with zero width and height.

    Declaration

    Swift

    public init()

    Return Value

    The newly created size.

  • Initializes a new size with the specified width and height.

    Declaration

    Swift

    public init(width: Double, height: Double)

    Parameters

    width

    The width of the size.

    height

    The height of the size.

    Return Value

    The newly created size.

  • A double field for the width of this Size.

    Declaration

    Swift

    public var width: Double
  • A double field for the height of this Size.

    Declaration

    Swift

    public var height: Double