Posts

Post not yet marked as solved
1 Replies
1.1k Views
I do have a pickerview with toolbar, but when i scroll it closes before I press the done button. the button is there but somehow useless. how to make pickerview close only after pressing the done button?I added done button like this : let doneBtn = UIBarButtonItem(title: "Done", style: .plain, target: self, action: #selector(RoundShapeController.dismissKeyboard)) toolbar.setItems([doneBtn], animated: false) toolbar.isUserInteractionEnabled = true materialTextField.inputAccessoryView = toolbar
Posted Last updated
.
Post not yet marked as solved
1 Replies
405 Views
I am developing a chatting app which has groups sections where it shows all groups in firebase firestore.here is my data collection:and inside Group i have:can anyone guide me how to get all Group from firestore? in realtime database i did that but could not get along in firestore:DataService.instance.REF_GROUPS.observe(.value) { (snapshot) in DataService.instance.getAllMessagesFor(desiredGroup: self.group!, handler: { (returnedGroupMessages) in self.groupMessages = returnedGroupMessages self.tableView.reloadData() if self.groupMessages.count > 0 { self.tableView.scrollToRow(at: IndexPath(row: self.groupMessages.count - 1, section: 0), at: .none, animated: true) } }) }
Posted Last updated
.