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

3D touch rollback

parent 95497c7a
......@@ -23,7 +23,7 @@
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleVersion</key>
<string>36</string>
<string>37</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
......
......@@ -298,6 +298,10 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
self.definesPresentationContext = true
if(traitCollection.forceTouchCapability == .available) {
registerForPreviewing(with: self, sourceView: self.LocationsList!)
}
navigationItem.title = "What's Open"
navigationController?.navigationBar.prefersLargeTitles = true
navigationItem.largeTitleDisplayMode = .always
......@@ -745,9 +749,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
cell.layer.shadowPath = UIBezierPath(roundedRect: cell.bounds, cornerRadius: cell.layer.cornerRadius).cgPath
self.reloadInputViews()
if(traitCollection.forceTouchCapability == .available) {
self.registerForPreviewing(with: self, sourceView: cell)
}
return cell
}
else {
......@@ -778,9 +779,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
}
cell.messageLabel.text = currentAlerts[indexPath.row].message
if(traitCollection.forceTouchCapability == .available) {
self.registerForPreviewing(with: self, sourceView: cell)
}
return cell
}
......@@ -937,7 +935,6 @@ class FacilitiesListViewController: UIViewController, UICollectionViewDelegate,
guard let indexPath = LocationsList?.indexPathForItem(at: location) else { return nil }
if(indexPath.section == 1 || currentAlerts.count == 0) {
let cell = LocationsList?.cellForItem(at: indexPath) as? FacilityCollectionViewCell
previewingContext.sourceRect = (cell?.bounds)!
guard let detailView = storyboard?.instantiateViewController(withIdentifier: "detailView") as? FacilityDetailViewController else { return nil }
detailView.facility = cell?.facility
return detailView
......
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