Showing
1 changed file
with
4 additions
and
4 deletions
| ... | @@ -264,6 +264,10 @@ import UIKit | ... | @@ -264,6 +264,10 @@ import UIKit |
| 264 | print("✅ [MyRewardsViewController] Created banner section with \(self.bannerCampaigns.count) campaigns and \(self.articles.count) articles") | 264 | print("✅ [MyRewardsViewController] Created banner section with \(self.bannerCampaigns.count) campaigns and \(self.articles.count) articles") |
| 265 | } | 265 | } |
| 266 | 266 | ||
| 267 | + // Always append filters section right after the banner section | ||
| 268 | + let filtersSection = SectionModel(sectionType: .myRewardsFilters) | ||
| 269 | + self.sections.append(filtersSection) | ||
| 270 | + | ||
| 267 | // Reload table view with new sections | 271 | // Reload table view with new sections |
| 268 | DispatchQueue.main.async { | 272 | DispatchQueue.main.async { |
| 269 | self.tableView.reloadData() | 273 | self.tableView.reloadData() |
| ... | @@ -574,10 +578,6 @@ import UIKit | ... | @@ -574,10 +578,6 @@ import UIKit |
| 574 | // Always insert at index 0 (top of the list) | 578 | // Always insert at index 0 (top of the list) |
| 575 | sections.insert(defaultProfileSection, at: 0) | 579 | sections.insert(defaultProfileSection, at: 0) |
| 576 | profileSection = defaultProfileSection | 580 | profileSection = defaultProfileSection |
| 577 | - | ||
| 578 | - // Insert filters cell immediately below profile info | ||
| 579 | - let filtersSection = SectionModel(sectionType: .myRewardsFilters) | ||
| 580 | - sections.insert(filtersSection, at: 1) | ||
| 581 | } | 581 | } |
| 582 | 582 | ||
| 583 | private func updateProfileSectionWithData(_ profile: ProfileModel) { | 583 | private func updateProfileSectionWithData(_ profile: ProfileModel) { | ... | ... |
-
Please register or login to post a comment