Mohammad Hamidi
Sep 4, 2018 · 1 min read

Hi, I’m new to iOS, so sorry if my question might seem a bit obvious, but in the code below, should the conditional unwrapping happen before the DispatchQueue.main.async or after? just like what it is now?

Code:

DispatchQueue.main.async {

if let items = items {

self.items = items

self.tableView.reloadData()

} else {

print(“Unable to load data”)

}

}

Thank you in advance.