From 232149817ec47df7102bdd185b59fb2b0cce88c8 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Tue, 1 Mar 2022 18:05:05 +0000 Subject: [PATCH] ios: fix alerts, build 20 (#390) --- apps/ios/Shared/ContentView.swift | 1 - apps/ios/Shared/Views/WelcomeView.swift | 13 +++---------- apps/ios/SimpleX.xcodeproj/project.pbxproj | 4 ++-- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/apps/ios/Shared/ContentView.swift b/apps/ios/Shared/ContentView.swift index ab891a6613..3d38c4c7ec 100644 --- a/apps/ios/Shared/ContentView.swift +++ b/apps/ios/Shared/ContentView.swift @@ -30,7 +30,6 @@ struct ContentView: View { .alert(isPresented: $alertManager.presentAlert) { alertManager.alertView! } } else { WelcomeView() - .alert(isPresented: $alertManager.presentAlert) { alertManager.alertView! } } } diff --git a/apps/ios/Shared/Views/WelcomeView.swift b/apps/ios/Shared/Views/WelcomeView.swift index ddeb67afb6..fc57cca555 100644 --- a/apps/ios/Shared/Views/WelcomeView.swift +++ b/apps/ios/Shared/Views/WelcomeView.swift @@ -34,16 +34,9 @@ struct WelcomeView: View { .padding(.bottom) ZStack(alignment: .topLeading) { if !validDisplayName(displayName) { - Button { - AlertManager.shared.showAlertMsg( - title: "Display name", - message: "Display name can't contain spaces" - ) - } label: { - Image(systemName: "exclamationmark.circle") - .foregroundColor(.red) - .padding(.top, 4) - } + Image(systemName: "exclamationmark.circle") + .foregroundColor(.red) + .padding(.top, 4) } TextField("Display name", text: $displayName) .textInputAutocapitalization(.never) diff --git a/apps/ios/SimpleX.xcodeproj/project.pbxproj b/apps/ios/SimpleX.xcodeproj/project.pbxproj index 776ef725fc..687234cfcb 100644 --- a/apps/ios/SimpleX.xcodeproj/project.pbxproj +++ b/apps/ios/SimpleX.xcodeproj/project.pbxproj @@ -815,7 +815,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = "SimpleX (iOS).entitlements"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 19; + CURRENT_PROJECT_VERSION = 20; DEVELOPMENT_TEAM = 5NN7GUYB6T; ENABLE_BITCODE = NO; ENABLE_PREVIEWS = YES; @@ -856,7 +856,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = "SimpleX (iOS).entitlements"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 19; + CURRENT_PROJECT_VERSION = 20; DEVELOPMENT_TEAM = 5NN7GUYB6T; ENABLE_BITCODE = NO; ENABLE_PREVIEWS = YES;