Categories
SwiftUI

100 Days of Swift UI – Days 29, 30, 31 – WordScramble

Another fun project, this time called WordScramble. You’re given an 8-letter word and are tasked with finding as many unique words as you can based on the letters in your assigned root word.

From a Swift(UI) perspective it involved a List, TextField and Alert – pretty straightforward things now. More interesting were the aspects of importing a text file, checking words against an Objective-C dictionary (that’s a mess) and setting/keeping scores.

One frustration – I couldn’t find a way, and it appears that SwiftUI doesn’t offer a convenient way – to allow the app to return focus to the TextField in order to allow the user to quickly enter more words. It’s a bit of a bad experience in the current state.

Leave a Reply

Your email address will not be published. Required fields are marked *