Skip to content

Commit

Permalink
Merge pull request #977 from DeluxeAlonso/feature/code-cleanup
Browse files Browse the repository at this point in the history
Feature/code cleanup
  • Loading branch information
DeluxeAlonso committed Sep 19, 2024
2 parents f392ca7 + fbe7196 commit e453d01
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,19 @@ final class SearchOptionsViewController: UITableViewController, Storyboarded {
guard let viewModel = viewModel else { return 0.0 }
switch viewModel.section(at: indexPath.section) {
case .recentlyVisited:
return 140.0
return Constants.recentlyVisitedRowHeight
case .defaultSearches:
return 65.0
return UITableView.automaticDimension
case .genres:
return 50.0
return Constants.genresRowHeight
}
}

}

extension SearchOptionsViewController {
struct Constants {
static let recentlyVisitedRowHeight: CGFloat = 140.0
static let genresRowHeight: CGFloat = 50.0
}
}

0 comments on commit e453d01

Please sign in to comment.