Added empty food menu notice, code for checking the app version, possible fix for jumpy CollectionView behaviour, TODO: check on real device

This commit is contained in:
Deniz Duezgoeren
2019-10-19 09:29:59 +02:00
parent fc8349d30c
commit ede4f0cc0a
7 changed files with 29 additions and 6 deletions
+5 -1
View File
@@ -22,6 +22,11 @@ class MenuViewController : UICollectionViewController, UICollectionViewDelegateM
collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout)
}
override func loadView() {
super.loadView()
self.collectionView.isPrefetchingEnabled = false
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
@@ -58,7 +63,6 @@ class MenuViewController : UICollectionViewController, UICollectionViewDelegateM
self.extendedLayoutIncludesOpaqueBars = true
self.collectionView.contentInsetAdjustmentBehavior = .always
self.navigationController?.navigationBar.topItem?.title = NSLocalizedString("food_menu", comment: "")
self.collectionView.isPrefetchingEnabled = false
}
@objc private func objDoAsync(_ sender: Any) {