How to concatenate string in Swift?
In Objective-C we do like
Objective-C
NSString *string = @\"Swift\"; NSString *resultStr = [string stringByAppen
In Swift 5 apple has introduces Raw Strings using # symbols.
Example:
print(#"My name is "XXX" and I'm "28"."#) let name = "XXX" print(#"My name is \#(name)."#)
symbol # is necessary after \. A regular \(name) will be interpreted as characters in the string.