This is my first SwiftUI app. After following along a tutorial, instead of finishing off the course with a similar app that was already covered in the course, I became inspired to write one that simulates a Brita, or any other water pitcher.
- By default, the pitcher is full, showing the water percentage at 100%.
- "Pour water" button: the water will decrease by both percentage and on the graphic image.
- "Fill tank" button: fills the tank with water; water increases by both percentage and on the graphic image.
Special features:
- At a random time interval, an alert warns the user to change the filter. The water turns brown until the filter is changed with the help of the "Change filter" button. The water percentage is reset to zero, the user must fill the tank again with water.
- Bonus sound effects accompanying the buttons.
-
Water filter icon made by Freepik from www.flaticon.com
- Sound source: SampleSwap and Zapsplat
- App background image created on Canva
Click on the video below, it'll take you to a demo uploaded on Youtube.