Size
public struct Size
extension Size: Zero
extension Size: Equatable
Model of rectangular size.
-
Width.
Declaration
Swift
public let width: Double
-
Height.
Declaration
Swift
public let height: Double
-
Declaration
Swift
public func scaled(by value: Double) -> Size
Return Value
a
Size
with both dimensions scaled by the same value. -
Declaration
Swift
public func scaled(by size: Size) -> Size
Return Value
a
Size
scaled by the dimensions ofsize
. -
Declaration
Swift
public static var zero: Size { get }