Adds basic search functionality to Browse tab

This commit is contained in:
Riley Testut
2020-03-30 13:46:15 -07:00
parent cf46bd0a46
commit 99df5aea3e
2 changed files with 4 additions and 1 deletions

View File

@@ -31,6 +31,9 @@ class BrowseViewController: UICollectionViewController
{
super.viewDidLoad()
self.dataSource.searchController.searchableKeyPaths = [#keyPath(InstalledApp.name)]
self.navigationItem.searchController = self.dataSource.searchController
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false
self.collectionView.register(BrowseCollectionViewCell.nib, forCellWithReuseIdentifier: RSTCellContentGenericCellIdentifier)