In Swift, it\'s easy to split a string on a character and return the result in an array. What I\'m wondering is if you can split a string by another string instead of just
You mean this?
let developer = "XCode Swift" let array = developer.characters.split{" "}.map(String.init) array[0] // XCode array[1] // Swift