A fun, simple word game built with SwiftUI! Players are given a random root word and must come up with as many valid English words as possible using only the letters from the root word.
- π Type in your words via a
TextField - π€ Automatic validation for:
- Unused (original) words
- Words made from the root word
- Valid English words using
UITextChecker
β οΈ Alerts for invalid entries- π Track entered words with icons showing their length
- π Loads random root word from a
start.txtfile in the bundle
- Swift 5
- SwiftUI
- UIKit (
UITextCheckerfor spell-checking)
ContentView.swiftβ Main view and logic for the gamestart.txtβ List of root words (placed in the app bundle)
- Clone the repository:
git clone https://github.com/your-username/WordScramble-SwiftUI.git
- Open the project in Xcode.
- Add a start.txt file to your app bundle with a list of words, one per line: silkworm developer keyboard swift ...
- Run the app on a simulator or physical device.
When the app starts, it loads a list of words from start.txt. A single word is randomly selected as the root word. Users must enter as many real English words as possible that: Use only the letters from the root word Have not already been used Are real, valid English words