Commit 5053ba1b authored by Zach Knox's avatar Zach Knox
Browse files

Stack view within stack views are fun

parent a7e0d858
......@@ -15,16 +15,9 @@ struct Filters {
var showClosed = true
var sortBy = SortMethod.alphabetical
var allAllFacilities = true
var facilitiesShown: [Int: Bool] = [:]
var facilities: [Facility]
init(facilities: [Facility]) {
self.facilities = facilities
var count = 0
for _ in facilities {
facilitiesShown[count] = true
count += 1
}
init() {
}
......
......@@ -18,6 +18,17 @@ class LocationDetailViewController: UIViewController, UITableViewDelegate, UITab
@IBOutlet var detailStackView: UIStackView!
@IBOutlet var OrderButton: UIButton!
@IBAction func orderButton(_ sender: Any) {
}
@IBOutlet var NotifyButton: UIButton!
@IBAction func notifyButton(_ sender: Any) {
}
var facility: Facility!
override func viewWillAppear(_ animated: Bool) {
......@@ -27,10 +38,16 @@ class LocationDetailViewController: UIViewController, UITableViewDelegate, UITab
}
override func viewDidLoad() {
super.viewDidLoad()
/*
OrderButton.layer.cornerRadius = 10
NotifyButton.layer.cornerRadius = 10
OrderButton.layer.borderWidth = 5
NotifyButton.layer.borderWidth = 5
*/
NameLabel.text = facility.name
PlaceLabel.text = facility.location
var open = Utilities.isOpen(facility: facility)
let open = Utilities.isOpen(facility: facility)
if(open) {
OpenLabel.text = "OPEN"
OpenLabel.backgroundColor = UIColor(red:0.00, green:0.40, blue:0.20, alpha:1.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment