convert an array to string swift code example
Example 1: swift array to string
let stringArray = ["Bob", "Dan", "Bryan"]
let string = stringArray.joined(separator: "")
print(string) // prints: "BobDanBryan"
Example 2: swift + data to string
let str = String(decoding: data, as: UTF8.self)