I have this code to display username that was stored in Firestore when signing up:
func displayUserName(){ let db = Firestore.firestore() if let uid = user?.uid{ db.collection("PROFILE").document(uid).getDocument { (snap, err) in guard let data = snap else {return} let firstname = data.get("firstName") as! String self.firstName = firstname } } } but, when I change the name in Firestore, I need to relaunch the app so it can update. is it possible to update this name without needing to relaunch the app?