isValid(within:)
Indicates whether the range set is valid for use with the provided discontiguous attributed string.
Declaration
func isValid(within text: DiscontiguousAttributedSubstring) -> BoolParameters
- text:
A discontiguous attributed string used to validate the range set.
Return Value
true when the range set is valid for use with the provided discontiguous attributed string; otherwise, false. A range set is valid if each of its ranges are valid in the discontiguous attributed string.