commit 4fcdeb2a01ade97675c56d6047da94b168805eeb
parent 2960fb3a87da187d073e671791593699c7331023
Author: Marc Stibane <marc@taler.net>
Date: Wed, 12 Jul 2023 18:43:45 +0200
iOS 15: show ToS
Diffstat:
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/TalerWallet1/Views/WithdrawBankIntegrated/WithdrawTOSView.swift b/TalerWallet1/Views/WithdrawBankIntegrated/WithdrawTOSView.swift
@@ -90,8 +90,18 @@ extension WithdrawTOSView {
let term2 = term1.replacingOccurrences(of: "\n" , with: " ") // remove all other linebreaks
let term3 = term2.replacingOccurrences(of: " ====", with: "\n====") // add them back for underscoring
let term4 = term3.replacingOccurrences(of: " ----", with: "\n----") // special for "Highlights:"
- Section {
- Text(term4)
+ let term5 = term4.replacingOccurrences(of: " ****", with: "\n****") // special for "Terms of Service:"
+// Text("term0")
+ if #available(iOS 16.0, *) {
+ Section {
+ Text(term5)
+ .font(.footnote)
+ .foregroundColor(Color(UIColor.label))
+ }
+ } else {
+ Text(term5)
+ .font(.footnote)
+ .foregroundColor(Color(UIColor.label))
}
} else {
Section {