Skip to content

Commit

Permalink
update friend orders
Browse files Browse the repository at this point in the history
  • Loading branch information
seantan22 committed Aug 28, 2020
1 parent cfb9e4a commit f69e9b9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Binary file not shown.
8 changes: 5 additions & 3 deletions CoffeeRun/CoffeeRun/NewTripViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class NewTripViewController: UIViewController, UITableViewDataSource, UITableVie

cell.setOrder(order: order)

let starImage = UIImage(systemName: "star.fill")
let starView = UIImageView(image: starImage)
// let starImage = UIImage(systemName: "star.fill")
// let starView = UIImageView(image: starImage)

// Each loop, check to make sure that if cell is chosen, it actually exists in selectedorders
if cell.contentView.backgroundColor == Colors.selectBlue {
Expand All @@ -188,7 +188,9 @@ class NewTripViewController: UIViewController, UITableViewDataSource, UITableVie
}

if order.friends == "true" {
cell.accessoryView = starView
cell.layer.borderColor = UIColor.black.cgColor
cell.layer.borderWidth = 2.0
// cell.accessoryView = starView
}

return cell
Expand Down
7 changes: 5 additions & 2 deletions CoffeeRun/CoffeeRun/WithdrawFundsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,11 @@ class WithdrawFundsViewController: UIViewController {
self.present(alert, animated: true)
}
} else {
self.swipeArrowView.center = CGPoint(x: self.originPointArrow.x, y: self.originPointArrow.y)
self.errorLabel.text = result.response[0]
DispatchQueue.main.async {
self.swipeArrowView.center = CGPoint(x: self.originPointArrow.x, y: self.originPointArrow.y)
self.errorLabel.text = result.response[0]
}

}
}
}
Expand Down

0 comments on commit f69e9b9

Please sign in to comment.