diff options
author | Marc Stibane <marc@taler.net> | 2023-07-12 18:43:45 +0200 |
---|---|---|
committer | Marc Stibane <marc@taler.net> | 2023-07-12 18:43:45 +0200 |
commit | 4fcdeb2a01ade97675c56d6047da94b168805eeb (patch) | |
tree | ba16c6baa0d140826a8eb50d302ce25c564e9f16 | |
parent | 2960fb3a87da187d073e671791593699c7331023 (diff) | |
download | taler-ios-4fcdeb2a01ade97675c56d6047da94b168805eeb.tar.gz taler-ios-4fcdeb2a01ade97675c56d6047da94b168805eeb.tar.bz2 taler-ios-4fcdeb2a01ade97675c56d6047da94b168805eeb.zip |
iOS 15: show ToS
-rw-r--r-- | TalerWallet1/Views/WithdrawBankIntegrated/WithdrawTOSView.swift | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/TalerWallet1/Views/WithdrawBankIntegrated/WithdrawTOSView.swift b/TalerWallet1/Views/WithdrawBankIntegrated/WithdrawTOSView.swift index bb7e552..fdafd49 100644 --- 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 { |