It's under reporting the time in my case (by a few minuets). I don't understand the 6-6 thing? this code gets a time from the file via the date call, it's checking for all sleep time in the last 24 hours as to support those with a daytime sleep schedule.
I posted this because my last response wasn't appearing on reloads, apologies.
Post
Replies
Boosts
Views
Activity
i Don’t believe the issue is with overlap as it’s undercounting the data for the time periods. I don’t understand the 6pm/6pm thing. This code checks a json file that has a date and is displaying any sleep data from the past 24 hours (the other parts I have not included as they work as intende.)
also I assume we would rather use this thread even though it doesnt pertain to core data? as opposed to the thread linking to this now? https://developer.apple.com/forums/thread/738464
I posted a response but apparently it never posted!
still. having the same issue now elsewhere in the code with the same code thats working. I'm unsure if or why files are being locked or why. in a different view (same thing just step two where this should be handing them too.) the view is unable to delete the file its loading into the view with the same name.
I also sent an email explaining the issue more, with an invite to the full code. it might be the detail view holding/recreating files
I've give-up the user can just have the extra click SwiftUI doesn't work properly. Use then above method to anyone who is trying to do the same thing
` init() {
UITabBar.appearance().backgroundColor = UIColor.black}` does not work either