taler-ios

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

commit ab3a256efc7c8d3a09efde9c54fdefbd66b7b5a7
parent 73b803bef987abfc6569f37984e61d8b936e7a3c
Author: Marc Stibane <marc@taler.net>
Date:   Fri, 12 Dec 2025 08:58:50 +0100

Network unavailable

Diffstat:
MTalerWallet1/Views/Main/MainView.swift | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/TalerWallet1/Views/Main/MainView.swift b/TalerWallet1/Views/Main/MainView.swift @@ -162,21 +162,22 @@ struct MainView: View { }.animation(.linear(duration: LAUNCHDURATION), value: controller.backendState) VStack { -#if DEBUG if networkUnavailable { - RoundedRectangle(cornerRadius: 15) - .fill(Color.red) - .frame( - width: UIScreen.screenWidth * 0.9, - height: 100 - ) + Text("Network unavailable!") + .foregroundStyle(.white) + .frame(maxWidth: .infinity, alignment: .leading) + .padding() + .background { + RoundedRectangle(cornerRadius: 15) + .fill(Color.red) + } + .padding(.horizontal) .transition(.asymmetric( insertion: .move(edge: .top), removal: .move(edge: .top) )) - } -#endif + mainGroup .environmentObject(tabBarModel) // .animation(.default, value: model.error2 == nil)