FloatRule

public class FloatRule : RegexRule

FloatRule is a subclass of RegexRule that defines how to check if a value is a floating point value.

  • Initializes a FloatRule object to validate that the text of a field is a floating point number.

    Declaration

    Swift

    public init(message: String = "must be a number with or without a decimal point.")

    Parameters

    message

    String of error message.

    Return Value

    An initialized object.