Unverified Commit b2f7edbc authored by Zach Knox's avatar Zach Knox
Browse files

Alerts functionally is complete

now to make it prettier
parent de2f1f8a
{
"images" : [
{
"idiom" : "universal",
"filename" : "info.png",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "info@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "info@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
......
......@@ -562,7 +562,18 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
// Do Alerts things here
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "Alert Cell", for: indexPath) as! AlertCollectionViewCell
cell.imageView.image = #imageLiteral(resourceName: "major")
switch currentAlerts[indexPath.row].urgency {
case "info":
cell.imageView.image = #imageLiteral(resourceName: "info")
case "minor":
cell.imageView.image = #imageLiteral(resourceName: "minor")
case "major":
cell.imageView.image = #imageLiteral(resourceName: "major")
case "emergency":
cell.imageView.image = #imageLiteral(resourceName: "emergency")
default:
cell.imageView.image = #imageLiteral(resourceName: "major")
}
cell.messageLabel.text = currentAlerts[indexPath.row].message
return cell
......
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