Defined the Character+Constants extension in. the app target.
This commit is contained in:
@@ -0,0 +1,11 @@
|
|||||||
|
// MARK: - Character+Constants
|
||||||
|
|
||||||
|
extension Character {
|
||||||
|
|
||||||
|
/// The newline character -`\n`-.
|
||||||
|
///
|
||||||
|
/// Use this constant when checking for or comparing against newline characters
|
||||||
|
/// in text processing, making the code more expressive and self-documenting.
|
||||||
|
static let newline: Character = "\n"
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user