taler-ios

iOS apps for GNU Taler (wallet)
Log | Files | Refs | README | LICENSE

commit 665b07dc9cd8f1a0829b02c4d394e04e6bba3924
parent b5f03bf097aab304bb4608478a3876fe4e310a4b
Author: Marc Stibane <marc@taler.net>
Date:   Tue, 24 Mar 2026 22:00:04 +0100

SettingsButton

Diffstat:
MTalerWallet1/Views/HelperViews/Buttons.swift | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/TalerWallet1/Views/HelperViews/Buttons.swift b/TalerWallet1/Views/HelperViews/Buttons.swift @@ -173,6 +173,26 @@ struct PlusButton : View { } } +struct SettingsButton : View { + let accessibilityLabelStr: String + let action: () -> Void + + var body: some View { + let button = Button(action: action) { + Image(systemName: SETTINGS) + } + .tint(.accentColor) + .talerFont(.title) + .accessibilityLabel(accessibilityLabelStr) +#if compiler(>=6.2) // XCODE26 + if #available(iOS 26.0, *) { + return button.buttonStyle(.glass) + } +#endif + return button + } +} + struct ZoomInButton : View { let accessibilityLabelStr: String let action: () -> Void