Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ios/EncryptedChat/UsersViewController.swift:7
class UsersViewController: UITableViewController {
var users = [String]()
override func viewDidLoad() {
super.viewDidLoad()
loadUsers()
}
func loadUsers() {
Account.shared.users { users in
self.users = users
self.tableView.reloadData()
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.