commit 4e71ef07ac6965ba311aa30349e72657d31f8451 parent 95bf2e98098b03250eed0dcd8c86345c6c595623 Author: Marc Stibane <marc@taler.net> Date: Mon, 24 Jul 2023 16:42:50 +0200 fanblades.slash and clock.badge.xmark not in iOS 15 Diffstat:
| M | TalerWallet1/Views/HelperViews/TransactionButton.swift | | | 15 | +++++++++------ |
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/TalerWallet1/Views/HelperViews/TransactionButton.swift b/TalerWallet1/Views/HelperViews/TransactionButton.swift @@ -49,19 +49,23 @@ struct TransactionButton: View { switch command { case .delete: Text("Delete from list" + spaces) - Image(systemName: "trash") // + Image(systemName: "trash") // case .abort: Text("Abort" + spaces) - Image(systemName: "x.circle") // + Image(systemName: "x.circle") // case .fail: Text("Fail" + spaces) - Image(systemName: "fanblades.slash") // + Image(systemName: "play.slash") // case .suspend: Text("Suspend" + spaces) - Image(systemName: "clock.badge.xmark") // + if #available(iOS 16.0, *) { + Image(systemName: "clock.badge.xmark") // + } else { + Image(systemName: "clock.badge.exclamationmark")// + } case .resume: Text("Resume" + spaces) - Image(systemName: "clock.arrow.circlepath") // + Image(systemName: "clock.arrow.circlepath") // } } } @@ -70,7 +74,6 @@ struct TransactionButton: View { }) .buttonStyle(.bordered) .controlSize(.large) - .padding(.horizontal) .disabled(disabled) }