Also if possible how would I be able to do the same thing for a tomorrow based on today from Date().
var today = Date()
/*code to get beginning and end of current Date()
Using the beginning of today add time interval: 86400 like below and then get start. From end of today do samething to get end of tomorrow. */
var tomorrow = Date(addingTimeInterval: 86400)
I just can't figure out what the code is to get the Start and End of Today. Also, how would you implement these two times into Predicate during Fetch Request.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: