Commit 05d2b288 authored by Zach Knox's avatar Zach Knox
Browse files

Changed "Open for" to "Closes in" and added comments for future needs

parent 1d3b612e
......@@ -43,6 +43,8 @@ class MainTableViewController: UITableViewController {
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
//Will want to have two sections (for some parts) eventually, to add headings
//for open and closed
return 1
}
......
......@@ -88,7 +88,9 @@ class Utilities: NSObject {
if(Utilities.isOpen(facility: facility)) {
let time = dateComponentsFormatter.string(from: getCurrentTime(), to: (today(facility: facility)?.endTime)!)
return "Open for \(time!)."
return "Closes in \(time!)."
//Eventually add more detailled text here, allowing for more custom
//messages as it gets closer to closing time
} else {
let time = dateComponentsFormatter.string(from: getCurrentTime(), to: (today(facility: facility)?.startTime)!)
return "Opens in \(time!)."
......
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