Disables Sources functionality for public versions

This commit is contained in:
Riley Testut
2020-04-01 13:27:26 -07:00
parent 1b89b81de0
commit c85da1495d

View File

@@ -31,8 +31,13 @@ class BrowseViewController: UICollectionViewController
{
super.viewDidLoad()
#if BETA
self.dataSource.searchController.searchableKeyPaths = [#keyPath(InstalledApp.name)]
self.navigationItem.searchController = self.dataSource.searchController
#else
// Hide Sources button for public version while in beta.
self.navigationItem.rightBarButtonItem = nil
#endif
self.prototypeCell.contentView.translatesAutoresizingMaskIntoConstraints = false