Manos Chorianopoulos

myRewards and profile fixes

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