concatenate two attributed strings swift code example
Example: concatenate two strings in swift
var greet = "Hello, "
let name = "Jack"
// using + operator
var result = greet + name
print(result)
//using =+ operator
greet += name
print(greet)
var greet = "Hello, "
let name = "Jack"
// using + operator
var result = greet + name
print(result)
//using =+ operator
greet += name
print(greet)