Instance Method

containsAttachments(in:)

Returns a Boolean value that indicates if the attributed string contains a property configured in the specified range.

Declaration

func containsAttachments(in range: NSRange) -> Bool

Parameters

range

The range.

Return Value

true if the attributed string contains a property configured as attachment with character in range; otherwise, false.

See Also

Getting Metrics for the String

func size() -> CGSize

Returns the size required to draw the string.