Unverified Commit 8c1e574a authored by Zach Knox's avatar Zach Knox
Browse files

reset filters button

parent 8dc14266
......@@ -74,6 +74,12 @@
</connections>
</tableView>
<navigationItem key="navigationItem" title="Filters" id="cMM-TC-eOa">
<barButtonItem key="leftBarButtonItem" title="Reset" id="oiZ-l0-N5p">
<color key="tintColor" red="1" green="0.0" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
<connections>
<action selector="resetButton:" destination="jkQ-vu-LQa" id="0A8-2P-9dL"/>
</connections>
</barButtonItem>
<barButtonItem key="rightBarButtonItem" systemItem="done" id="fjl-0E-K5s">
<connections>
<action selector="doneButton:" destination="jkQ-vu-LQa" id="mmt-OK-gtV"/>
......
......@@ -19,6 +19,10 @@ class FiltersTableViewController: UITableViewController {
self.dismiss(animated: true, completion: nil)
}
@IBAction func resetButton(_ sender: Any) {
filters = Filters()
tableView.reloadData()
}
var filters: Filters!
var facilities: List<Facility>!
//var allLocations: [Locations] = [Locations]()
......
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