This day covers the second and final part of Project 21: Local Notifications
in Hacking with Swift.
You can follow along directly here.
I previously created projects alongside Hacking with Swift in a separate repository. For 100 Days of Swift, however, I've been extending things further and adding my projects to this repo under each "Part One" folder.
With that in mind, Day 73 focuses on extending the
Local Notifications
project according to a set of challenges.
Update the code in
didReceive
so that it shows different instances ofUIAlertController
depending on which action identifier was passed in.
- 🔗 Commit
For a harder challenge, add a second
UNNotificationAction
to thealarm
category of project 21. Give it the title “Remind me later”, and schedule it to be shown in 24 hours.
- 🔗 Commit
Update
Project 2: Guess the Flag
so that it reminds players to come back and play every day.
- 🔗 Commit