Skip to content

A swift app using SwiftUI that gives the user pre-generated compliments.

License

Notifications You must be signed in to change notification settings

chvia223/complimentor-ios-app

Repository files navigation

Overview

This project app is designed to take in user input and output messages based on the input provided. It also pulls information from a json file and loads it into a struct to be used within the project environment.

The purpose of this project was to gain baseline experience using SwiftUI to take in inputs, display outputs, and load in data. It was also beneficial learning how to pass data between views and edit object states based on events triggered between different views.

The user will be presented with a button and a text field. When they press the button the text field will populate with a compliment randomly selected from a list of compliments loaded in from a json file. I chose to go this route for future functionality as well as getting practice loading in data to be used within a SwiftUI app.

Complimenter App Demo Video

Development Environment

  • Swift 5.6
  • SwiftUI 3
  • Xcode 13.3
  • Git/GitHub

Useful Websites

Future Work

  • I was thinking of one day having the app pull the compliments from an API endpoint since it's already configured to load in from a json file.
  • I might play around with more visual elements to see how much I can push SwiftUI
  • I might change how text is displayed in the ComplimentBox view. I like the idea of using a String optional, but I don't like that I used a bang instead of unwrapping it.
  • Add fun text colors and fonts for certain compliments.

About

A swift app using SwiftUI that gives the user pre-generated compliments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages