How to avoid line break in multiline string literals in Swift?

If we need to provide line breaks in multiline string literal in order to improve code readability but we don’t need them in output  we can prevent line breaks from appearing in output by using backslash( \ ).

Leave a Reply