Recently I created a Swiftui project and connected it with my firestore firebase, and I have two documents (Student, Instructor). And in my project, I have two buttons (Login as Student, log in as Instructor), how can I connect the two buttons to fit with these documents respectively?
In summary, the "Login as Student" button should ONLY access the "Student" document, and the "Log in as Instructor" button should ONLY access the "Instructor" document.