Answers for "component separated by pi string in swift 4"

5

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
Posted by: Guest on January-31-2020

Code answers related to "component separated by pi string in swift 4"

Code answers related to "Swift"

Browse Popular Code Answers by Language