From 46e1242d8dc15b4a067556cd689fb53c8becc9aa Mon Sep 17 00:00:00 2001 From: chickdan <=> Date: Tue, 7 Jan 2025 19:45:33 -0600 Subject: [PATCH] revert and remove commented code --- Shared/Components/TruncatedText.swift | 2 +- .../Modifiers/OnScenePhaseChangedModifier.swift | 2 +- Swiftfin tvOS/Views/SettingsView/SettingsView.swift | 6 ------ 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Shared/Components/TruncatedText.swift b/Shared/Components/TruncatedText.swift index 86041eaa4..d042a9239 100644 --- a/Shared/Components/TruncatedText.swift +++ b/Shared/Components/TruncatedText.swift @@ -103,7 +103,7 @@ struct TruncatedText: View { } .hidden() } - .onChange(of: isTruncated) { _, newValue in + .onChange(of: isTruncated) { newValue in isTruncatedBinding.wrappedValue = newValue } } diff --git a/Shared/Extensions/ViewExtensions/Modifiers/OnScenePhaseChangedModifier.swift b/Shared/Extensions/ViewExtensions/Modifiers/OnScenePhaseChangedModifier.swift index 97ca66b1a..c27074867 100644 --- a/Shared/Extensions/ViewExtensions/Modifiers/OnScenePhaseChangedModifier.swift +++ b/Shared/Extensions/ViewExtensions/Modifiers/OnScenePhaseChangedModifier.swift @@ -17,7 +17,7 @@ struct OnScenePhaseChangedModifier: ViewModifier { let action: () -> Void func body(content: Content) -> some View { - content.onChange(of: scenePhase) { _, newValue in + content.onChange(of: scenePhase) { newValue in if newValue == phase { action() } diff --git a/Swiftfin tvOS/Views/SettingsView/SettingsView.swift b/Swiftfin tvOS/Views/SettingsView/SettingsView.swift index 06a070f64..69be51e15 100644 --- a/Swiftfin tvOS/Views/SettingsView/SettingsView.swift +++ b/Swiftfin tvOS/Views/SettingsView/SettingsView.swift @@ -36,12 +36,6 @@ struct SettingsView: View { UserProfileRow(user: viewModel.userSession.user.data) { router.route(to: \.userProfile, viewModel) } -// Button {} label: { -// TextPairView( -// leading: L10n.user, -// trailing: viewModel.userSession.user.username -// ) -// } ChevronButton( L10n.server,