From db534e5993987f129a404c6eb5188fef376d0ba2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 13 Apr 2024 23:19:28 -0400 Subject: [PATCH] Fix About screen link labels not being aligned --- .../Screens/Preferences/About/AboutView.swift | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/Tusker/Screens/Preferences/About/AboutView.swift b/Tusker/Screens/Preferences/About/AboutView.swift index c45ca511..071fa2c8 100644 --- a/Tusker/Screens/Preferences/About/AboutView.swift +++ b/Tusker/Screens/Preferences/About/AboutView.swift @@ -59,7 +59,12 @@ struct AboutView: View { } } label: { HStack { - Label("Get Support", systemImage: "envelope") + Label { + Text("Get Support") + } icon: { + Image(systemName: "envelope") + .foregroundStyle(.tint) + } Spacer() if isGettingLogData { ProgressView() @@ -75,7 +80,6 @@ struct AboutView: View { Label("Issue Tracker", systemImage: "checklist") } } - .labelStyle(AboutLinksLabelStyle()) .appGroupedListRowBackground() } .listStyle(.insetGrouped) @@ -174,15 +178,6 @@ private struct MailSheet: UIViewControllerRepresentable { } } -private struct AboutLinksLabelStyle: LabelStyle { - func makeBody(configuration: Configuration) -> some View { - HStack(alignment: .lastTextBaseline, spacing: 8) { - configuration.icon - configuration.title - } - } -} - struct AboutView_Previews: PreviewProvider { static var previews: some View { AboutView()