How can I create an empty collection in Firestore (Swift)? i want to do that when I create DB users after I registrate them, because on my main screen it tries to fetch from
Collections are automatically created when you write a document to them. There is no way to create a collection without a document in it.
There is no way you can create an empty collection in Cloud Firestore. To solve this, you should create at least one document within that collection. In this way, that particular collection will start to exist.
If you create a collection in the Firebase Console containing one document, the collection is created automatically for you. This is also happening if you try to delete the last document in a collection, that particular collection will be automatically deleted.