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

@@ -86,7 +86,7 @@ class MessagesPackListView: UITableViewController {
config.secondaryText = pack.downloadedDescription(dlCount) config.secondaryText = pack.downloadedDescription(dlCount)
config.secondaryTextProperties.font = UIFont.systemFont(ofSize: 12) config.secondaryTextProperties.font = UIFont.systemFont(ofSize: 12)
config.secondaryTextProperties.color = .systemGray config.secondaryTextProperties.color = dlCount == 0 ? .systemRed : .systemGray
} }
cell.contentConfiguration = config cell.contentConfiguration = config
@@ -52,7 +52,7 @@ class StickerBrowserViewController: MSStickerBrowserViewController {
stickerBrowserView.reloadData() stickerBrowserView.reloadData()
guard let subview = stickerBrowserView.subviews.first, guard let subview = stickerBrowserView.subviews.first,
let collectionView = subview as? UICollectionView else { return } 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) { 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 { override func numberOfStickers(in stickerBrowserView: MSStickerBrowserView) -> Int {
return msStickers.count 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.