Omni Crosswords is an iOS app that fetches crosswords from Firebase Cloud Firestore and enables users to complete them on a iOS Device..
Omni Crosswords uses SwiftUI.
Use XCode to open the .xcodeproj file. There are two options to enable a successful build.
Set up Firebase Cloud Firestore, and add the GoogleService-Info.plist file to the root directory. Make sure anonymous authentication is enabled.
The app expects a collection named "crosswords". An example document (in JSON) can be found in sampleData.json. The "id" field contains the expected format of the document id. Data is transformed from Firebase in JsonToCrossword.swift.
- Remove the dependency in the build on
GoogleService-Info.plistin Build Phases > Copy Bundle Resources - Change DevOverrides.plist to set
localModetotrue
- This will automatically show one crossword in the list - this crossword data be changed by changing sampleData.json. It will only show one crossword.
- If you want to add another crossword for testing, you can visit the "Upload" tab in localMode, and you can type in a filename to add (don't include the .json extension) - you can add the other files in the SampleDataFiles directory
- Do not commit these changes. (git update-index --skip-worktree crosswords/DevOverrides.plist is your friend!)