'SwiftUI Double Backslash in Text without Raw Strings

In SwiftUI how can i make Text to show Double Backslashes? Escaping does not seem to help

Text("Hello \\\\") // renders to: Hello \

Expected Output: Hello \\

Raw Strings is not an option here, as localization is not possible without the right escape sequence.

Localization of the String MUST be possible!



Solution 1:[1]

Here is possible variant

Text(verbatim: "Hello \\\\")

Tested with Xcode 13.3 / iOS 15.4

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Asperi