Viewport

public struct Viewport : Codable

The Viewport object (the bounding box rectangle).

Important

This is a Public Preview API. It may be changed or removed at any time.

Lifecycle

  • Init method for Viewport.

    Declaration

    Swift

    public init(topLeftPoint: Position, btmRightPoint: Position)

    Parameters

    topLeftPoint

    Top left corner of the bounding box.

    btmRightPoint

    Bottom right corner of the bounding box.

Public

  • Top-left corner of the bounding box.

    Declaration

    Swift

    public let topLeftPoint: Position
  • Bottom-right corner of the bounding box.

    Declaration

    Swift

    public let btmRightPoint: Position