with swift 3
There’s no direct access to the auto correct dictionary used by the keyboard. There’s various indirect access (via things like UITextChecker and UIReferenceLibraryViewController) but nothing that’ll simply return you a list of words that you can use as input to your game.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
As eskimo has already said, you cannot get access to the dictionary that the keyboard uses, but there is a free dictionary on your Mac, in /usr/share/dict/web2. It 's from 1934 (that's why it's free), so it will not have more modern words, but it could nevertheless be useful for you.