I'm sending data to Firestore and I recognised that I can't read the documents I created.
I noticed that the documents IDs are printed out in italic.
I searched online then and found out that there may be something to do with the previous cancellation of the document itself and the retainment of sub-collections of that document.
I don't know If I'm doing something wrong in when setting the data so that I can't read the documents. This is how I set up the data:
guard let uid = Auth.auth().currentUser?.uid else { return }
let db = Firestore.firestore().collection("Showcases").document(uid).collection("Showcase")
let data = ["value1" : value1,
"value2" : value2 ,
"value3":value3,
"value4": value4,
"value5": value5] as [String : Any?]
db.document("\(index)").setData(data as [String : Any])