Created
June 14, 2018 17:15
-
-
Save olbrichj/3f766c82877b34d844c9be97cb658fbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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