From 7dcc1ba992323de12f3cc9e65233e7909fb50fb8 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Mon, 2 Sep 2024 09:52:14 +1000 Subject: [PATCH] fix UI issue when there is an error or no results for a gif search --- .../GIFs/GifPickerViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift b/Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift index 9962e5d5f..6a0b88d9d 100644 --- a/Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift +++ b/Session/Media Viewing & Editing/GIFs/GifPickerViewController.swift @@ -186,13 +186,13 @@ class GifPickerViewController: OWSViewController, UISearchBarDelegate, UICollect self.noResultsView = noResultsView self.view.addSubview(noResultsView) noResultsView.set(.width, to: .width, of: self.view, withOffset: -20) - noResultsView.center(.horizontal, in: self.collectionView) + noResultsView.center(in: self.collectionView) let searchErrorView = createErrorLabel(text: "searchMatchesNone".localized()) self.searchErrorView = searchErrorView self.view.addSubview(searchErrorView) searchErrorView.set(.width, to: .width, of: self.view, withOffset: -20) - searchErrorView.center(.horizontal, in: self.collectionView) + searchErrorView.center(in: self.collectionView) searchErrorView.isUserInteractionEnabled = true searchErrorView.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(retryTapped)))