|
I'm planning out a new app concept but was getting a bit caught on the logic from the model I had designed - but then I couldn't think of a cleaner way to achieve it. I'm hoping some fresh eyes, and some more experienced people might be able to help me realise what is working or what is not. Assume we have the concept - Personal Car Maintenance. We have set schedules for things that should be looked at, and when. However not everything is a daily, or monthly check. Some are "as needed" or others are every n days.
Now the parts which I'm having issue visualising on how to implement are:
On the "upcoming check up screen" I essentially wanted something similar to a TV show tracker: Except, on this screen it would be all the stored
Now I assume the logic used to make the list I can use too to set local notifications - as in get today's event (eg. Car 1 - change oil @ 9:00am) then see the schedule frequency and set the next notification for then. My logic behind the
Except in this I'm now hard coding the number of schedules to create, but it does make it cleaner in being able to query them all and list them, or create notifications for them by getting the next in the array. Is this logical or am I heading in the wrong direction? Aside from the other issues (like number of queued up local notifications allowed), in terms of the functionality would be good or is there another way I'm overlooking or not aware of? In terms of creating a As an example - we can have a But for those M/W/F days we can have different times for the frequency. As in, 8am - 12pm - 6pm. And since the
How can we handle all this, and in terms of the List view too (for SwiftUI) and then using them for the notifications.. |
SPONSORED Get accurate app localizations in minutes using AI. Choose your languages & receive translations for 40+ markets!
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.