How to concat two unicodes in Swift

115 Views Asked by At

I have following two unicodes

 let countryFlag1 =  "0x1F1E6"
 let countryFlag2 =  "0x1F1E9"

How to concat two unicodes to and assign it to textfield

Tried following it is working but don't know how to do it with variable as there can be multiple values.

selectContryTextField.text = "\u{1F1E6}\u{1F1E9}"
0

There are 0 best solutions below