mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
afklj
This commit is contained in:
1 file changed
+2
-1
@@ -54,13 +54,14 @@ class BrowseViewController: UINavigationController {
|
||||
|
||||
@objc func shuffle() {
|
||||
guard let tableView = self.tableView.tableView else { return }
|
||||
self.refreshUI(withItems: [])
|
||||
let safeAreaInsets = tableView.safeAreaInsets
|
||||
tableView.setContentOffset(
|
||||
CGPoint(
|
||||
x: CGFloat(-safeAreaInsets.left),
|
||||
y: CGFloat(-safeAreaInsets.top)
|
||||
),
|
||||
animated: true
|
||||
animated: false
|
||||
)
|
||||
self.refreshUI(withItems: getItems().shuffled())
|
||||
}
|
||||
|
||||