RepoWatcher is a Swift Widget and associated app following along with the tutorial by Sean Allen. link
It demonstrates API requests within a Swift Widget & SwiftUI, JSON decoding, and testing with fallback data.
- Clone the repository
- Duplicate the
Secrets.template.plistfile toSecrets.plist - Add your Github API key to the
Secrets.plistfile⚠️ IMPORTANT:Secrets.plistis gitignored and should never be committed- Only commit changes to
Secrets.template.plist
- In the project assets folder (Widget and App have two separate folders), add an Avatar image named
avatar.png/jpg/jpeg, thats used as a default image if the avatar placeholder fetch request fails. - Run the app
- Never commit the
Secrets.plistfile as it contains sensitive API keys - The repository includes a
.gitignorefile that excludesSecrets.plist - Only make changes to
Secrets.template.plistwhen adding new secret keys (using placeholder values)