Any way to wrap a long string in Xcode to new line?

Solution 1:

Since you are using the Swift tag, I'll assume you're programming in swift.

Swift supports multiline strings like this:

var about: String = """
My name is Adam.
I am a software developer.
"""

This will include a newline character at the end of each line. To remove the newline character add a \ to the end of the line.

Example:

var about: String = """
My name is Adam. \
I am a software developer.
"""

Swift Reference for Multiline Strings