prefersRTFD(in:)
Returns a Boolean value that indicates whether the specified range of text prefers RTFD formatting.
Declaration
func prefersRTFD(in range: NSRange) -> BoolParameters
- range:
The range of text to test.
Return Value
true if the range of text prefers RTFD formatting, or false if you can use the RTF format instead.
Discussion
When an attributed string contains attachments, you must save it using the RTFD file format to preserve the attached files.