string separated by comma or space in array swift 5 code example
Example: Split a String into an array in Swift
let fullName = "First Last"
let fullNameArr = fullName.components(separatedBy: " ")
let firstName = fullNameArr[0] //First
let lastName = fullNameArr[1] //Last