Manos Chorianopoulos

myRewards and profile fixes

...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
153 <constraint firstItem="x0X-za-HZ9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="22" id="SzO-Fk-ZCB"/> 153 <constraint firstItem="x0X-za-HZ9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="22" id="SzO-Fk-ZCB"/>
154 <constraint firstItem="x0X-za-HZ9" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="uQN-BA-o6w"/> 154 <constraint firstItem="x0X-za-HZ9" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="uQN-BA-o6w"/>
155 <constraint firstAttribute="trailing" secondItem="x0X-za-HZ9" secondAttribute="trailing" constant="22" id="vi4-dI-lx3"/> 155 <constraint firstAttribute="trailing" secondItem="x0X-za-HZ9" secondAttribute="trailing" constant="22" id="vi4-dI-lx3"/>
156 - <constraint firstAttribute="bottom" secondItem="x0X-za-HZ9" secondAttribute="bottom" id="zsL-aX-JRL"/> 156 + <constraint firstAttribute="bottom" secondItem="x0X-za-HZ9" secondAttribute="bottom" constant="19" id="zsL-aX-JRL"/>
157 </constraints> 157 </constraints>
158 </tableViewCellContentView> 158 </tableViewCellContentView>
159 <viewLayoutGuide key="safeArea" id="njF-e1-oar"/> 159 <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
......
...@@ -275,9 +275,9 @@ import UIKit ...@@ -275,9 +275,9 @@ import UIKit
275 // match - survey - tesla - energy saver 275 // match - survey - tesla - energy saver
276 let contestUrls: [String] = [ 276 let contestUrls: [String] = [
277 "https://warply.s3.amazonaws.com/dei/campaigns/match_dev/index.html", 277 "https://warply.s3.amazonaws.com/dei/campaigns/match_dev/index.html",
278 - "https://warply.s3.amazonaws.com/dei/campaigns/questionnaire_dev/index.html" 278 + "https://warply.s3.amazonaws.com/dei/campaigns/questionnaire_dev/index.html",
279 "https://warply.s3.amazonaws.com/dei/campaigns/tesla_dev/index.html", 279 "https://warply.s3.amazonaws.com/dei/campaigns/tesla_dev/index.html",
280 - "https://warply.s3.amazonaws.com/dei/campaigns/EnergySaverContest_dev/index.html", 280 + "https://warply.s3.amazonaws.com/dei/campaigns/EnergySaverContest_dev/index.html"
281 ] 281 ]
282 282
283 var bannerOffersSection: SectionModel? 283 var bannerOffersSection: SectionModel?
......
...@@ -274,24 +274,25 @@ extension ProfileViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -274,24 +274,25 @@ extension ProfileViewController: UITableViewDelegate, UITableViewDataSource {
274 } 274 }
275 275
276 public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { 276 public func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
277 -// return nil 277 + return nil
278 - if (section <= 3) { 278 +// if (section <= 3) {
279 - return nil 279 +// return nil
280 - } else { 280 +// } else {
281 - // Return clear view for spacing 281 +// // Return clear view for spacing
282 - let headerView = UIView() 282 +//// let headerView = UIView()
283 - headerView.backgroundColor = UIColor.white 283 +// let headerView = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 19))
284 - return headerView 284 +// headerView.backgroundColor = UIColor.white
285 - } 285 +// return headerView
286 +// }
286 } 287 }
287 288
288 public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { 289 public func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
289 -// return 0.0 290 + return 0.0
290 - if (section <= 3) { 291 +// if (section <= 3) {
291 - return 0.0 292 +// return 0.0
292 - } else { 293 +// } else {
293 - return 19.0 294 +// return 19.0
294 - } 295 +// }
295 } 296 }
296 297
297 public func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { 298 public func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
......