Horje
Split a String into an array in Swift Code 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




1

Related
add top corner radius swift Code Example add top corner radius swift Code Example
swift stirng to date Code Example swift stirng to date Code Example
increase the size of the image in Swiftui Code Example increase the size of the image in Swiftui Code Example
set image width and height swiftui Code Example set image width and height swiftui Code Example
center text swiftui Code Example center text swiftui Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9