diff --git a/App/Sources/Extensions/Character+Constants.swift b/App/Sources/Extensions/Character+Constants.swift new file mode 100644 index 0000000..3b02b5d --- /dev/null +++ b/App/Sources/Extensions/Character+Constants.swift @@ -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" + +}