Answers for "swift reload view"

0

swift reload view

let queue = DispatchQueue(label: "com.lozzoc")
var backgroundTask = DispatchWorkItem {
	var data = try? Data() ?? Data()
}
var updateUITask = DispatchWorkItem {
	self.tableView.reloadData()
}

backgroundTask.notify(queue: DispatchQueue.main,
						execute: updateUITask)
                        
queue.async(execute: backgroundTask)
Posted by: Guest on March-01-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language