aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Session
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-02-17 21:16:19 -0600
committerIván Ávalos <avalos@disroot.org>2022-02-17 21:16:19 -0600
commit7713da08539c360f65bdf9962726e162e1e01b0c (patch)
treeb5b23baf519ec9bc055860c924d1b065e21b8e42 /iosApp/iosApp/Session
parentbd06016e9ca3bc7ae5a40e605aee5f453c48b52c (diff)
downloadetbsa-trackermap-mobile-7713da08539c360f65bdf9962726e162e1e01b0c.tar.gz
etbsa-trackermap-mobile-7713da08539c360f65bdf9962726e162e1e01b0c.tar.bz2
etbsa-trackermap-mobile-7713da08539c360f65bdf9962726e162e1e01b0c.zip
Branded iOS app
Diffstat (limited to 'iosApp/iosApp/Session')
-rw-r--r--iosApp/iosApp/Session/AboutView.swift10
-rw-r--r--iosApp/iosApp/Session/AccountView.swift2
-rw-r--r--iosApp/iosApp/Session/RootView.swift2
3 files changed, 3 insertions, 11 deletions
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
@@ -26,16 +26,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) {
UIApplication.shared.open(url, options: [:])
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
}
}