Stretch

struct Stretch : Codable, Equatable, Sendable

Describes a stretchable segment on an axis.

  • Starting point of the stretch range.

    Declaration

    Swift

    public var from: Double
  • to

    Ending point of the stretch range.

    Declaration

    Swift

    public var to: Double
  • Creates a new stretch segment.

    Declaration

    Swift

    public init(from: Double, to: Double)

    Parameters

    from

    Starting point of the stretch range.

    to

    Ending point of the stretch range.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws