by @saigowthamr

How to append a character to a string in Swift

Home » swift » How to append a character to a string in Swift

Swift has built-in append() method by using that we can append a character to a string.

In this below example, we are appending character o to a given string.

var string = "Hello"

string.append("o");

print(string)

Output:

Helloo