在 Swift 中将字符串拆分成数组?

var fullName: String = "First Last"
var fullNameArr = // something like: fullName.explode(" ") 

var firstName: String = fullNameArr[0]
var lastName: String? = fullnameArr[1]

答案