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
@@ -28,6 +28,11 @@ class PlanViewController : UICollectionViewController, UICollectionViewDelegateM
collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout)
}
override func loadView() {
super.loadView()
self.collectionView.isPrefetchingEnabled = false
}
override func viewWillAppear(_ animated: Bool) {
if !self.prefs.bool(forKey: "logged_in") {
@@ -96,7 +101,6 @@ class PlanViewController : UICollectionViewController, UICollectionViewDelegateM
self.collectionView.contentInsetAdjustmentBehavior = .always
self.df.setTabBarBadge(for: self.tabBarController?.tabBar.items)
self.collectionView.isPrefetchingEnabled = false
}
func getViewType() -> String {