MaxValue
public enum MaxValue
extension MaxValue: Equatable
Low-level Max SDK type wrap
Supported types: float, int, symbol
-
Undocumented
Declaration
Swift
case float(Double)
-
Undocumented
Declaration
Swift
case int(Int64)
-
Undocumented
Declaration
Swift
case symbol(String)
-
Undocumented
Declaration
Swift
case unknown
-
Declaration
Swift
public static func == (lhs: MaxValue, rhs: MaxValue) -> Bool
-
Wraps a value of any common Swift type into a MaxValue. Supported: Int, Double, Float, String, Bool, Int32/64, UInt. Falls back to
.unknown
for unsupported types.Declaration
Swift
public init(any value: Any)
-
Attempts to convert the value to a desired Swift type, if representable.
Declaration
Swift
func convert<T>(to type: T.Type) -> T? where T : MaxValueConvertible