From 7865f6a6977b2dc8620f1ed45556d68c41072b31 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Thu, 21 Nov 2019 15:27:06 +0100 Subject: [PATCH] Omit category title if single AND unnamed --- Passepartout-iOS/Scenes/ProviderPoolViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Passepartout-iOS/Scenes/ProviderPoolViewController.swift b/Passepartout-iOS/Scenes/ProviderPoolViewController.swift index 31f74558..da204dae 100644 --- a/Passepartout-iOS/Scenes/ProviderPoolViewController.swift +++ b/Passepartout-iOS/Scenes/ProviderPoolViewController.swift @@ -157,7 +157,7 @@ extension ProviderPoolViewController: UITableViewDataSource, UITableViewDelegate } func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { - guard categories.count > 1 else { + if categories.count == 1 && categories.first?.name == "" { return nil } let model = categories[section]