Skip to content

Commit d9203cf

Browse files
committed
improve table view example
1 parent 05c88ad commit d9203cf

File tree

1 file changed

+5
-2
lines changed
  • docs/platforms/apple/common/profiling

1 file changed

+5
-2
lines changed

docs/platforms/apple/common/profiling/index.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,11 @@ var tableView: UITableView!
7171
URLSession.shared.dataTask(with: URLRequest(url: URL(string: "https://my.domain.tld/endpoint")!)) { data, response, error in
7272
self.model = try! JSONDecoder().decode(MyModel.self, from: data!)
7373
DispatchQueue.main.async {
74-
self.tableView.reloadData()
75-
SentrySDK.stopProfiler()
74+
self.tableView.performBatchUpdates {
75+
// update table view with model
76+
} completion: { finished in
77+
SentrySDK.stopProfiler()
78+
}
7679
}
7780
}
7881
}

0 commit comments

Comments
 (0)