From 7afd11fdc6273257ae4d9c6403f479729698923e Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Thu, 15 Dec 2022 15:10:20 -0600 Subject: [PATCH] =?UTF-8?q?Moves=20=E2=80=9CView=20Error=20Log=E2=80=9D=20?= =?UTF-8?q?setting=20to=20new=20Techy=20Things=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AltStore/Settings/Settings.storyboard | 40 +++++++++++++++++++ .../Settings/SettingsViewController.swift | 15 ++++--- 2 files changed, 49 insertions(+), 6 deletions(-) diff --git a/AltStore/Settings/Settings.storyboard b/AltStore/Settings/Settings.storyboard index e70c76f1..abc0abf6 100644 --- a/AltStore/Settings/Settings.storyboard +++ b/AltStore/Settings/Settings.storyboard @@ -378,6 +378,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/AltStore/Settings/SettingsViewController.swift b/AltStore/Settings/SettingsViewController.swift index e538411b..a3fd79fc 100644 --- a/AltStore/Settings/SettingsViewController.swift +++ b/AltStore/Settings/SettingsViewController.swift @@ -24,6 +24,7 @@ extension SettingsViewController case patreon case appRefresh case instructions + case techyThings case credits case debug } @@ -254,6 +255,9 @@ private extension SettingsViewController case .instructions: break + case .techyThings: + settingsHeaderFooterView.primaryLabel.text = NSLocalizedString("TECHY THINGS", comment: "") + case .credits: settingsHeaderFooterView.primaryLabel.text = NSLocalizedString("CREDITS", comment: "") @@ -514,7 +518,7 @@ extension SettingsViewController { case .signIn where self.activeTeam != nil: return nil case .account where self.activeTeam == nil: return nil - case .signIn, .account, .patreon, .appRefresh, .credits, .debug: + case .signIn, .account, .patreon, .appRefresh, .techyThings, .credits, .debug: let headerView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "HeaderFooterView") as! SettingsHeaderFooterView self.prepare(headerView, for: section, isHeader: true) return headerView @@ -534,7 +538,7 @@ extension SettingsViewController self.prepare(footerView, for: section, isHeader: false) return footerView - case .account, .credits, .debug, .instructions: return nil + case .account, .credits, .debug, .instructions, .techyThings: return nil } } @@ -545,7 +549,7 @@ extension SettingsViewController { case .signIn where self.activeTeam != nil: return 1.0 case .account where self.activeTeam == nil: return 1.0 - case .signIn, .account, .patreon, .appRefresh, .credits, .debug: + case .signIn, .account, .patreon, .appRefresh, .techyThings, .credits, .debug: let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: true) return height @@ -564,7 +568,7 @@ extension SettingsViewController let height = self.preferredHeight(for: self.prototypeHeaderFooterView, in: section, isHeader: false) return height - case .account, .credits, .debug, .instructions: return 0.0 + case .account, .credits, .debug, .instructions, .techyThings: return 0.0 } } } @@ -577,7 +581,6 @@ extension SettingsViewController switch section { case .signIn: self.signIn() - case .instructions: break case .appRefresh: let row = AppRefreshRow.allCases[indexPath.row] switch row @@ -798,7 +801,7 @@ extension SettingsViewController } - default: break + case .account, .patreon, .instructions, .techyThings: break } } }