Archived
Merged PlanViewController and PersonalViewController into one superclass inherited by separate ViewControllers, implemented Airbnb's MagazineLayout <3
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// PersonalPlanViewController.swift
|
||||
// AvH Plan
|
||||
//
|
||||
// Created by Deniz Duezgoeren on 16.07.19.
|
||||
// Copyright © 2019 Deniz Duezgoeren. All rights reserved.
|
||||
//
|
||||
|
||||
import UIKit
|
||||
|
||||
class PersonalPlanViewController: PlanViewController {
|
||||
|
||||
@IBOutlet weak var toolbar: UINavigationBar!
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
}
|
||||
|
||||
override func getViewType() -> String {
|
||||
return "personal"
|
||||
}
|
||||
|
||||
override func getRefreshViewString() -> String {
|
||||
return "Fetching your plan..."
|
||||
}
|
||||
|
||||
override func getFromDatabase() -> [SubstModel] {
|
||||
return df.getPersonalFromDatabase()
|
||||
}
|
||||
|
||||
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.
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user