Eureka custom Custom PushRow doesn't get value

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



Eureka custom Custom PushRow doesn't get value



When I use static data all works well. But when I load data from server row can't take value from checked cell. It shows me that cell is checked but doesn't return to back and show value. It's just stay checked


var originalOptions = [ListCheckRow<Row.Cell.Value>]()
var currentOptions = [ListCheckRow<Row.Cell.Value>]()

if query.count >= 3 {
ClientService.getClientsByRowSearch(searchText: query).done (clients) in
self.currentOptions =
clients.clients.forEach( (client) in
self.currentOptions.append(self.getCheckRowBy(client: client))
)
DispatchQueue.main.async
self.tableView.reloadData()

.catch (e) in
print(e)


func getCheckRowBy(client: Client) -> ListCheckRow<Row.Cell.Value>
let newCheckRow = ListCheckRow<Row.Cell.Value>()
newCheckRow.baseCell.baseRow.title = client.clientName
newCheckRow.onCellSelection (ch1, ch2) in
ch1.setup()

return newCheckRow



Еhe full code is here









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

How to determine optimal route across keyboard