Manos Chorianopoulos

ProfileViewController coupon list fixes

......@@ -275,11 +275,17 @@ import UIKit
extension ProfileViewController: UITableViewDelegate, UITableViewDataSource {
public func numberOfSections(in tableView: UITableView) -> Int {
return 4 + (filteredOffersSection?.offers.count ?? 0)
// return 4 + (filteredOffersSection?.offers.count ?? 0)
return 5
}
public func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 1
// return 1
if (section <= 3) {
return 1
} else {
return filteredOffersSection?.offers.count ?? 0
}
}
public func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
......