Drop truncation hack

This commit is contained in:
Davide De Rosa 2022-05-23 10:10:02 +02:00
parent 83cdd460e4
commit 02213a7c50
4 changed files with 1 additions and 4 deletions

View File

@ -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)
}

View File

@ -105,7 +105,6 @@ struct DonateView: View {
Text(L10n.Donate.Sections.OneTime.header)
} footer: {
Text(L10n.Donate.Sections.OneTime.footer)
.xxxThemeTruncation()
}
}

View File

@ -273,7 +273,6 @@ private struct PurchaseRow: View {
extra.map {
Text($0)
.frame(maxHeight: .infinity)
// .xxxThemeTruncation()
}
}.padding([.top, .bottom])
}

View File

@ -49,7 +49,6 @@ extension ProfileView {
Text(Unlocalized.VPN.vpn)
} footer: {
Text(L10n.Profile.Sections.Vpn.footer)
.xxxThemeTruncation()
}
}