Merged PlanViewController and PersonalViewController into one superclass inherited by separate ViewControllers, implemented Airbnb's MagazineLayout <3

This commit is contained in:
Deniz Duezgoeren
2019-07-16 13:17:22 +02:00
parent 7e23bb2e5d
commit 347317a5e7
8 changed files with 323 additions and 343 deletions
+45
View File
@@ -0,0 +1,45 @@
//
// GeneralViewController.swift
// AvH Plan
//
// Created by Deniz Duezgoeren on 16.07.19.
// Copyright © 2019 Deniz Duezgoeren. All rights reserved.
//
import UIKit
class GeneralViewController: PlanViewController {
@IBOutlet weak var toolbar: UINavigationBar!
override func viewDidLoad() {
super.viewDidLoad()
}
override func getViewType() -> String {
return "plan"
}
override func getRefreshViewString() -> String {
return "Fetching the plan..."
}
override func getFromDatabase() -> [SubstModel] {
return df.getFromDatabase()
}
override func getToolbarBottomAnchor() -> NSLayoutYAxisAnchor {
return toolbar.bottomAnchor
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}