var numbers = \"Hello,Goodbye,Hi,Bye\" var numbersArr = numbers.componentsSeparatedByString(\",\")
//[\"Hello\".\"Goodbye\",\"Hi\",\"Bye\"]
It looks like there is a components(separatedBy:) on String:
components(separatedBy:)
String
import Foundation let words = "apple binary cat delta echo".components(separatedBy: " ") print(words)
IBM Playground link: http://swiftlang.ng.bluemix.net/#/repl/57868332b4e4e9971bf9f4e8