From 02213a7c50dbc1cea9f943f61acfad5424ec5750 Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Mon, 23 May 2022 10:10:02 +0200 Subject: [PATCH] Drop truncation hack --- Passepartout/App/Constants/Theme.swift | 2 +- Passepartout/App/Views/DonateView.swift | 1 - Passepartout/App/Views/PaywallView+Purchase.swift | 1 - Passepartout/App/Views/ProfileView+VPN.swift | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Passepartout/App/Constants/Theme.swift b/Passepartout/App/Constants/Theme.swift index 4049f9a3..4dcaa53d 100644 --- a/Passepartout/App/Constants/Theme.swift +++ b/Passepartout/App/Constants/Theme.swift @@ -518,7 +518,7 @@ extension View { // MARK: Hacks extension View { -// @available(*, deprecated, message: "mitigates multiline text truncation (1.0 does not work though)") + @available(*, deprecated, message: "mitigates multiline text truncation (1.0 does not work though)") func xxxThemeTruncation() -> some View { minimumScaleFactor(0.5) } diff --git a/Passepartout/App/Views/DonateView.swift b/Passepartout/App/Views/DonateView.swift index dca16008..c7c57d5b 100644 --- a/Passepartout/App/Views/DonateView.swift +++ b/Passepartout/App/Views/DonateView.swift @@ -105,7 +105,6 @@ struct DonateView: View { Text(L10n.Donate.Sections.OneTime.header) } footer: { Text(L10n.Donate.Sections.OneTime.footer) - .xxxThemeTruncation() } } diff --git a/Passepartout/App/Views/PaywallView+Purchase.swift b/Passepartout/App/Views/PaywallView+Purchase.swift index dd03473a..839f514d 100644 --- a/Passepartout/App/Views/PaywallView+Purchase.swift +++ b/Passepartout/App/Views/PaywallView+Purchase.swift @@ -273,7 +273,6 @@ private struct PurchaseRow: View { extra.map { Text($0) .frame(maxHeight: .infinity) -// .xxxThemeTruncation() } }.padding([.top, .bottom]) } diff --git a/Passepartout/App/Views/ProfileView+VPN.swift b/Passepartout/App/Views/ProfileView+VPN.swift index b9fc170b..20680d66 100644 --- a/Passepartout/App/Views/ProfileView+VPN.swift +++ b/Passepartout/App/Views/ProfileView+VPN.swift @@ -49,7 +49,6 @@ extension ProfileView { Text(Unlocalized.VPN.vpn) } footer: { Text(L10n.Profile.Sections.Vpn.footer) - .xxxThemeTruncation() } }