private func scrollToBottomOfTableView(){
if let lastRow: Int = self.tableView.numberOfRows(inSection: 0) - 1 { ======> error:"Initializer for conditional binding must have Optional type, not 'Int'"
let indexPath = IndexPath(row: lastRow, section: 0)
self.tableView.scrollToRow(at: indexPath, at: .top, animated: false)
}
}
private func scrollToBottomOfTableView(){
if let lastRow: Int = self.tableView.numberOfRows(inSection: 0) - 1 { ======> error:"Initializer for conditional binding must have Optional type, not 'Int'"
let indexPath = IndexPath(row: lastRow, section: 0)
self.tableView.scrollToRow(at: indexPath, at: .top, animated: false)
}
}