Instance Method

isEqual(to:)

Returns a Boolean value that indicates whether the receiver is equal to another given attributed string.

Declaration

func isEqual(to other: NSAttributedString) -> Bool

Parameters

otherString

The attributed string with which to compare the receiver.

Return Value

true if the receiver is equal to otherString, otherwise false.

Discussion

Attributed strings must match in both characters and attributes to be equal.