Skip to content

Instantly share code, notes, and snippets.

@olbrichj
Created June 14, 2018 17:15
Show Gist options
  • Save olbrichj/3f766c82877b34d844c9be97cb658fbe to your computer and use it in GitHub Desktop.
Save olbrichj/3f766c82877b34d844c9be97cb658fbe to your computer and use it in GitHub Desktop.
var title : [String] = []
func write(_ text: String) {
let words = text.split(separator: " ")
DispatchQueue.main.async {
for word in words {
title.append(String(word))
print(word)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment