Verified Commit 06b6ad7b authored by Eyad Hasan's avatar Eyad Hasan
Browse files

Trying to fix errors that are preventing the project from building

parent 4d2fb0c0
...@@ -100,7 +100,7 @@ class FilterSelectionTableViewController: UITableViewController { ...@@ -100,7 +100,7 @@ class FilterSelectionTableViewController: UITableViewController {
else { else {
let tableCell = tableView.cellForRow(at: indexPath) let tableCell = tableView.cellForRow(at: indexPath)
var res: Bool var res: Bool
if(tableCell?.accessoryType == UITableViewCell.AccessoryType.none) { if(tableCell?.accessoryType == UITableViewCell.accessoryType.none) {
res = true res = true
} }
else { else {
......
...@@ -30,7 +30,7 @@ class FacilityDetailViewController: UIViewController, UITableViewDelegate, UITab ...@@ -30,7 +30,7 @@ class FacilityDetailViewController: UIViewController, UITableViewDelegate, UITab
else { else {
title = "Add to Favorites" title = "Add to Favorites"
} }
let favoritePreviewItem = UIPreviewAction(title: title, style: UIPreviewAction.Style.default, handler: markAsFavoritePreviewAction) let favoritePreviewItem = UIPreviewAction(title: title, style: UIPreviewAction.style.default, handler: markAsFavoritePreviewAction)
return [favoritePreviewItem] return [favoritePreviewItem]
} }
......
...@@ -46,10 +46,10 @@ class OnlyOneChecked { ...@@ -46,10 +46,10 @@ class OnlyOneChecked {
func setCheckToCellWithID(_ id: Int) { func setCheckToCellWithID(_ id: Int) {
for cell in view.sortOptions { for cell in view.sortOptions {
if(id == cell.cellIndex) { if(id == cell.cellIndex) {
cell.accessoryType = UITableViewCell.AccessoryType.checkmark cell.accessoryType = UITableViewCell.accessoryType.checkmark
} }
else { else {
cell.accessoryType = UITableViewCell.AccessoryType.none cell.accessoryType = UITableViewCell.accessoryType.none
} }
} }
......
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