From c51327a540c572e990edeabcd1c9742f0152a29d Mon Sep 17 00:00:00 2001 From: Taksh Date: Fri, 31 Jul 2026 19:03:59 +0300 Subject: [PATCH] fix: drop unused AlternateAppIconSettings.selected for Periphery --- bitchat/Services/AlternateAppIconSettings.swift | 6 ------ bitchat/Views/AppInfoView.swift | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bitchat/Services/AlternateAppIconSettings.swift b/bitchat/Services/AlternateAppIconSettings.swift index 8b3ca8b7..4938d27b 100644 --- a/bitchat/Services/AlternateAppIconSettings.swift +++ b/bitchat/Services/AlternateAppIconSettings.swift @@ -67,12 +67,6 @@ enum AlternateAppIconSettings { } } - /// Current preference (UserDefaults). The App Info picker calls - /// `setSelected` directly — no setter here. - static var selected: Icon { - selected(in: .standard) - } - static func selected(in defaults: UserDefaults) -> Icon { let raw = defaults.string(forKey: storageKey) ?? Icon.primary.rawValue return Icon(rawValue: raw) ?? .primary diff --git a/bitchat/Views/AppInfoView.swift b/bitchat/Views/AppInfoView.swift index 63c7c329..889f45b1 100644 --- a/bitchat/Views/AppInfoView.swift +++ b/bitchat/Views/AppInfoView.swift @@ -35,7 +35,7 @@ struct AppInfoView: View { /// start, so surface the restart hint. @State private var showLanguageRestartNote = false #if os(iOS) - @State private var selectedAppIcon = AlternateAppIconSettings.selected + @State private var selectedAppIcon = AlternateAppIconSettings.selected(in: .standard) #endif private enum Pane: String {