isNewline
A Boolean value indicating whether this character represents a newline.
Declaration
var isNewline: Bool { get }Discussion
For example, the following characters all represent newlines:
“\n” (U+000A): LINE FEED (LF)
U+000B: LINE TABULATION (VT)
U+000C: FORM FEED (FF)
“\r” (U+000D): CARRIAGE RETURN (CR)
“\r\n” (U+000D U+000A): CR-LF
U+0085: NEXT LINE (NEL)
U+2028: LINE SEPARATOR
U+2029: PARAGRAPH SEPARATOR