commit ce7f9482e39f58216a4c0e0d7bbd8e669e1c9738 parent 52d5e6a5dae2dd485e4115d6a276e4cf44e01423 Author: Marc Stibane <marc@taler.net> Date: Sat, 28 Jun 2025 08:18:05 +0200 cleanup Diffstat:
| M | TalerWallet1/Helper/TalerStrings.swift | | | 5 | +++++ |
| M | TalerWallet1/Views/Settings/BackupView.swift | | | 7 | ------- |
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/TalerWallet1/Helper/TalerStrings.swift b/TalerWallet1/Helper/TalerStrings.swift @@ -79,6 +79,11 @@ extension String { return self } + func deletingPrefix(_ prefix: String) -> String { + guard self.hasPrefix(prefix) else { return self } + return String(self.dropFirst(prefix.count)) + } + var spaced: String { String(self.map { $0 == NONBREAKING ? SPACECHAR : $0 diff --git a/TalerWallet1/Views/Settings/BackupView.swift b/TalerWallet1/Views/Settings/BackupView.swift @@ -12,13 +12,6 @@ import SymLog let BACKUP = "Taler-" let PREFIX = "file://" -extension String { - func deletingPrefix(_ prefix: String) -> String { - guard self.hasPrefix(prefix) else { return self } - return String(self.dropFirst(prefix.count)) - } -} - /// This view shows the list of backups struct BackupView: View { private let symLog = SymLogV(0)