mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-19 03:33:36 +01:00
Changes BrowseViewController’s search bar placement to inline
This commit is contained in:
@@ -50,10 +50,11 @@ class BrowseViewController: UICollectionViewController, PeekPopPreviewing
|
|||||||
self.collectionView.backgroundColor = .altBackground
|
self.collectionView.backgroundColor = .altBackground
|
||||||
self.collectionView.alwaysBounceVertical = true
|
self.collectionView.alwaysBounceVertical = true
|
||||||
|
|
||||||
#if BETA
|
self.dataSource.searchController.searchableKeyPaths = [#keyPath(StoreApp.name),
|
||||||
self.dataSource.searchController.searchableKeyPaths = [#keyPath(InstalledApp.name)]
|
#keyPath(StoreApp.subtitle),
|
||||||
|
#keyPath(StoreApp.developerName),
|
||||||
|
#keyPath(StoreApp.bundleIdentifier)]
|
||||||
self.navigationItem.searchController = self.dataSource.searchController
|
self.navigationItem.searchController = self.dataSource.searchController
|
||||||
#endif
|
|
||||||
|
|
||||||
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false
|
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false
|
||||||
|
|
||||||
@@ -88,6 +89,10 @@ class BrowseViewController: UICollectionViewController, PeekPopPreviewing
|
|||||||
self.navigationItem.scrollEdgeAppearance = edgeAppearance
|
self.navigationItem.scrollEdgeAppearance = edgeAppearance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if #available(iOS 16, *)
|
||||||
|
{
|
||||||
|
self.navigationItem.preferredSearchBarPlacement = .inline
|
||||||
|
}
|
||||||
|
|
||||||
self.preparePipeline()
|
self.preparePipeline()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user