From 7713da08539c360f65bdf9962726e162e1e01b0c Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Thu, 17 Feb 2022 21:16:19 -0600 Subject: Branded iOS app --- iosApp/iosApp/Session/AboutView.swift | 10 ---------- iosApp/iosApp/Session/AccountView.swift | 2 +- iosApp/iosApp/Session/RootView.swift | 2 ++ 3 files changed, 3 insertions(+), 11 deletions(-) (limited to 'iosApp/iosApp/Session') diff --git a/iosApp/iosApp/Session/AboutView.swift b/iosApp/iosApp/Session/AboutView.swift index 7e5325b..1f0c4c7 100644 --- a/iosApp/iosApp/Session/AboutView.swift +++ b/iosApp/iosApp/Session/AboutView.swift @@ -25,16 +25,6 @@ struct AboutView: View { } } - Button { - if let url = URL(string: NSLocalizedString("app-source-code", comment: "")) { - if UIApplication.shared.canOpenURL(url) { - UIApplication.shared.open(url, options: [:]) - } - } - } label: { - Label("source-code", systemImage: "chevron.left.forwardslash.chevron.right") - } - Button { if let url = URL(string: NSLocalizedString("app-website", comment: "")) { if UIApplication.shared.canOpenURL(url) { diff --git a/iosApp/iosApp/Session/AccountView.swift b/iosApp/iosApp/Session/AccountView.swift index 4ca453a..fae3d6e 100644 --- a/iosApp/iosApp/Session/AccountView.swift +++ b/iosApp/iosApp/Session/AccountView.swift @@ -53,7 +53,7 @@ struct AccountView: View { Text("server-url") Spacer() Text(server).foregroundColor(.secondaryLabel) - } + }.visible(false) } } diff --git a/iosApp/iosApp/Session/RootView.swift b/iosApp/iosApp/Session/RootView.swift index 297a2aa..960187a 100644 --- a/iosApp/iosApp/Session/RootView.swift +++ b/iosApp/iosApp/Session/RootView.swift @@ -107,8 +107,10 @@ struct LoginForm: View { #if os(macOS) FormTextField(title: "server-url", text: $server) + .visible(false) #else FormTextField(title: "server-url", text: $server, keyboardType: .URL) + .visible(false) #endif } } -- cgit v1.2.3