commit 54c9f6164f2fb87aa409d4bc36179475af769f57
parent 5ee1fc4a3924e4420adc78c2dd3118b7b436b5d8
Author: Marc Stibane <marc@taler.net>
Date: Thu, 21 Nov 2024 21:53:23 +0100
cleanup
Diffstat:
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/TalerWallet1/Helper/Encodable+toJSON.swift b/TalerWallet1/Helper/Encodable+toJSON.swift
@@ -1,21 +1,20 @@
/*
- * This file is part of GNU Taler, ©2022-23 Taler Systems S.A.
+ * This file is part of GNU Taler, ©2022-24 Taler Systems S.A.
* See LICENSE.md
*/
/**
* @author Iván Ávalos
+ * @author Marc Stibane
*/
import Foundation
extension Encodable {
func toJSON(_ encoder: JSONEncoder = JSONEncoder()) -> String? {
- let e = encoder
- e.outputFormatting = .prettyPrinted
- if let data = try? e.encode(self) {
+ encoder.outputFormatting = .prettyPrinted
+ if let data = try? encoder.encode(self) {
let result = String(decoding: data, as: UTF8.self)
return String(result)
}
-
return nil
}
}
diff --git a/TalerWallet1/Helper/URL+id+iban.swift b/TalerWallet1/Helper/URL+id+iban.swift
@@ -21,6 +21,7 @@ extension URL {
}
return nil
}
+
var xTaler: String? {
/// https://datatracker.ietf.org/doc/rfc8905/
/// payto://iban/DE75512108001245126199?amount=EUR:200.0&message=hello
diff --git a/TalerWallet1/Views/Balances/BalancesPendingRowV.swift b/TalerWallet1/Views/Balances/BalancesPendingRowV.swift
@@ -2,6 +2,9 @@
* This file is part of GNU Taler, ©2022-24 Taler Systems S.A.
* See LICENSE.md
*/
+/**
+ * @author Marc Stibane
+ */
import SwiftUI
import taler_swift
//import SymLog