From 931a16c54436667e14e1c57e46e4f89263f79f8e Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 10 Mar 2021 14:33:57 -0600 Subject: [PATCH] Hides Genesis skin credit for public versions --- Delta/Settings/SettingsViewController.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Delta/Settings/SettingsViewController.swift b/Delta/Settings/SettingsViewController.swift index 3a7668b..16fef76 100644 --- a/Delta/Settings/SettingsViewController.swift +++ b/Delta/Settings/SettingsViewController.swift @@ -412,6 +412,17 @@ extension SettingsViewController } } + override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat + { + switch Section(rawValue: indexPath.section)! + { + #if !BETA + case .credits where indexPath.row == CreditsRow.litRitt.rawValue: return 0.0 + #endif + default: return super.tableView(tableView, heightForRowAt: indexPath) + } + } + override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { let section = Section(rawValue: section)!