Question : spilit string in swift
Answered by : zakaria-jawas
import Foundation
let sayHello = "Hello Swift 4 2017";
let result = sayHello.split(separator: " ")
print(result)
Source : https://stackoverflow.com/questions/25678373/split-a-string-into-an-array-in-swift | Last Update : Wed, 25 May 22