isPunctuation
A Boolean value indicating whether this character represents punctuation.
Declaration
var isPunctuation: Bool { get }Discussion
For example, the following characters all represent punctuation:
“!” (U+0021 EXCLAMATION MARK)
“؟” (U+061F ARABIC QUESTION MARK)
“…” (U+2026 HORIZONTAL ELLIPSIS)
“—” (U+2014 EM DASH)
““” (U+201C LEFT DOUBLE QUOTATION MARK)