fix scroll indicator floating lmao

if 0 emojis are downloaded, it shows up red :pf:
This commit is contained in:
Nihaal Sharma committed 2026-08-02 14:31:05 +05:30
1 parent 23af724d60
commit cb6af1dc87
2 files changed
+12 -2

No files matched your search

@@ -52,7 +52,7 @@ class StickerBrowserViewController: MSStickerBrowserViewController {
stickerBrowserView.reloadData()
guard let subview = stickerBrowserView.subviews.first,
let collectionView = subview as? UICollectionView else { return }
collectionView.setContentOffset(CGPoint(x: 0, y: 0), animated: true)
collectionView.setContentOffset(.zero, animated: true)
}
func setEmptyViewTo(visible: Bool) {
@@ -75,6 +75,16 @@ class StickerBrowserViewController: MSStickerBrowserViewController {
}
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
guard let subview = stickerBrowserView.subviews.first,
let collectionView = subview as? UICollectionView else { return }
collectionView.automaticallyAdjustsScrollIndicatorInsets = false
collectionView.directionalLayoutMargins.trailing = 0
self.view.directionalLayoutMargins.trailing = 0
collectionView.verticalScrollIndicatorInsets.bottom = view.safeAreaInsets.bottom
}
override func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
return msStickers.count
}
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.