Created
January 3, 2020 10:59
-
-
Save Krishna21Soni13/1d1ce21fbbf669540ff95cd8363dc241 to your computer and use it in GitHub Desktop.
Configure chat view model.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private func configureViewModel() { | |
guard let name = nickName else { | |
return | |
} | |
chatViewModel.arrUsers.subscribe {[weak self] (result: [User]) in | |
guard let self = self else { | |
return | |
} | |
self.reloadData() | |
} | |
chatViewModel.fetchParticipantList(name) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment