-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar displaying same value every day #1403
Comments
wait.. just to be clear, you're updating from version 7 to 8? |
no I'm still on 7 |
Have you tried migrating to version 8? since it was introduced 6 years ago 😬 ... im sure its a tiny mistake youre making somewhere |
yeah, I need to do that lol |
all set, I figured out thanks, I'll try and migrate to version 8 later on |
(Required) Version Number:
7.1
Description
I'm trying to update my calendar to get the data needed from Firestore instead of CoreData which is working fine but when I try to display the data from Firestore the whole calendar gets the same value
Steps To Reproduce
Function in my User Struct
` static func getUserHoursFromFirestore(date: Date, from snapshot: DocumentSnapshot, forField field: String, completion: @escaping (Double?) -> Void) {
my handleFirestoreHours on cellForItemAt
`func handleFirestoreHours(cell: CalendarCell, cellState: CellState) {
let db = Firestore.firestore()
let user = Auth.auth().currentUser
let userCollection = db.collection("users").document((user?.email)!)
let hourCollection = userCollection.collection("hours").document("Nov 25 2024 05:00 PM")
Expected Behavior
the calendar should be displaying only the hours for Nov 25, 2024, for testing purposes then the documentID will be used
Additional Context
Since the app is working fine using core data at version 7.1 I haven't tried updating to version 8.0.5
I'm fairly new to swift and I hope you can help me solve this issue, thanks in advance.
The text was updated successfully, but these errors were encountered: