mirror of
https://github.com/signalapp/Signal-iOS.git
synced 2025-12-05 01:10:41 +00:00
Do not show empty glass panel in chat search UI.
This commit is contained in:
committed by
GitHub
parent
11e7e9ce61
commit
68bbedaf89
@@ -306,6 +306,16 @@ public class SearchResultsBar: UIView {
|
||||
}
|
||||
|
||||
func updateBarItems() {
|
||||
defer {
|
||||
if #available(iOS 26, *) {
|
||||
if labelItem.title.isEmptyOrNil {
|
||||
toolbar.items = [ showLessRecentButton, showMoreRecentButton, .flexibleSpace() ]
|
||||
} else {
|
||||
toolbar.items = [ showLessRecentButton, showMoreRecentButton, .flexibleSpace(), labelItem, .flexibleSpace() ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
guard let resultSet else {
|
||||
labelItem.title = nil
|
||||
showMoreRecentButton.isEnabled = false
|
||||
|
||||
Reference in New Issue
Block a user