Making an Election Day app with SwiftUI #iOS #Swift #SwiftUI

Since Election Day is approaching, I’ve decided to create an “Election Day” app using SwiftUI that was part of this week’s Show and Tell. When I began working on this app, I had a clear idea of what should be in it.

  1. Add a timer label that counts down from the current time to November 3rd (Election Day)
  2. Add a web link to voter information sites
  3. Gather location information so that depending on the users location, it can reflect the correct voter information based on location

This is how it turned out.

 

Pretty simple. But there are a few things wrong with this app. The first I thing should do is change the background color to a more neutral color (since colors can be associated with certain political parties). Another thing would be the amount of unused space…but I also need to fill those spaces with useful information.

So, after thinking my approach to this app over, I’ve decided to create a banner with a label that shows the users the amount of days that are leading up to the election, the presidential parties and candidates, and lastly section the information using custom card views. This is how it turned out.

This was good start. There’s still still some user interface kinks to work out, but this is looking pretty good so far! I’ll be back next week with an update and a link to this on Github.


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.