This commit is contained in:
Nihaal Sharma committed 2026-08-30 20:10:23 +05:30
1 parent e322848c97
commit 9128511fb2
1 file changed
+2 -1
@@ -54,13 +54,14 @@ class BrowseViewController: UINavigationController {
@objc func shuffle() { @objc func shuffle() {
guard let tableView = self.tableView.tableView else { return } guard let tableView = self.tableView.tableView else { return }
self.refreshUI(withItems: [])
let safeAreaInsets = tableView.safeAreaInsets let safeAreaInsets = tableView.safeAreaInsets
tableView.setContentOffset( tableView.setContentOffset(
CGPoint( CGPoint(
x: CGFloat(-safeAreaInsets.left), x: CGFloat(-safeAreaInsets.left),
y: CGFloat(-safeAreaInsets.top) y: CGFloat(-safeAreaInsets.top)
), ),
animated: true animated: false
) )
self.refreshUI(withItems: getItems().shuffled()) self.refreshUI(withItems: getItems().shuffled())
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.