ZeroToOneClamped
@propertyWrapper
public struct ZeroToOneClamped<Value> where Value : FloatingPoint
For all values that can only be valid in the range of 0 to 1, such as percentages (e.g., opacity) and scales (e.g., volume). Values less than 0 are set to 0, greater than 1 are set to 1.
-
Undocumented
Declaration
Swift
public var wrappedValue: Value? { get set }
-
Undocumented
Declaration
Swift
public init(wrappedValue defaultValue: Value?)