Value
Swift
public indirect enum Value: Hashable, Equatable, CustomStringConvertible
A subexpression of a SassCalculation
.
Topics
case number(SassNumber)
case number(SassNumber)
A number with optional associated units. See number(_:unit:)
.
Declaration
Swift
case number(SassNumber)
case string(String)
case string(String)
A string - expected to be a Sass variable for later evaluation, for example the $width
part of calc($width / 2)
.
Declaration
Swift
case string(String)
case interpolation(String)
case interpolation(String)
A string - expected to be a Sass variable, but this form means the stylesheet has #{$width}
instead of $width
.
Use string(_:)
instead when building your own Value
s.
Declaration
Swift
case interpolation(String)
case operation(Value, Operator, Value)
case operation(Value, Operator, Value)
case calculation(SassCalculation)
case calculation(SassCalculation)
Helpers
static func number(Double, unit: String?) -> Value
static func number(Double, unit: String?) -> Value
A helper to construct number(_:)
s.
Declaration
Misc
var description: String
var description: String