-
validate(with:
Default implementation) Validates whether the value unmarshaled from
TweakTradeValue
is compatible with the tweak’s default value.If this method is not implemented, then the return value is assumed to be true.
Default Implementation
Declaration
Swift
func validate(with defaultValue: Self) -> Bool
Parameters
defaultValue
The tweak’s default value.
Return Value
Ture if the value unmarshaled from
TweakTradeValue
is compatible with the tweak’s default value; otherwise, false.