aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Session
diff options
context:
space:
mode:
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
}
}