Archived
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user