Answers for "convert this string to an array of strings in swift 5"

2

swift array to string

let stringArray = ["Bob", "Dan", "Bryan"]
let string = stringArray.joined(separator: "")

print(string) // prints: "BobDanBryan"
Posted by: Guest on February-03-2020
0

string to array swift

let yourString = "Let's split this string"
let arrayValue = split(yourString) {$0 == " "}
Posted by: Guest on July-02-2021

Code answers related to "convert this string to an array of strings in swift 5"

Code answers related to "Swift"

Browse Popular Code Answers by Language