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 -
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
fromStarting point of the stretch range.
toEnding point of the stretch range.
-
Declaration
Swift
public func encode(to encoder: Encoder) throws -
Declaration
Swift
public init(from decoder: Decoder) throws