Mehr-Tab: PWA-Deep-Links (Forum/Hunde/Profil) entfernt — Companion-App, User kommt eh über banyaro.app

This commit is contained in:
rene 2026-06-03 16:40:04 +02:00
parent 5ea219d274
commit bc74926431

View file

@ -99,9 +99,6 @@ struct SettingsView: View {
} }
Section { Section {
pwaLink("Forum", systemImage: "bubble.left.and.bubble.right.fill", fragment: "forum")
pwaLink("Hunde-Profile bearbeiten", systemImage: "pawprint.fill", fragment: "dogs")
pwaLink("Profil & Einstellungen", systemImage: "gearshape.fill", fragment: "settings")
if let url = URL(string: "https://banyaro.app") { if let url = URL(string: "https://banyaro.app") {
Link(destination: url) { Link(destination: url) {
HStack { HStack {
@ -263,20 +260,4 @@ struct SettingsView: View {
if path.hasPrefix("http") { return URL(string: path) } if path.hasPrefix("http") { return URL(string: path) }
return URL(string: "https://banyaro.app\(path)") return URL(string: "https://banyaro.app\(path)")
} }
@ViewBuilder
private func pwaLink(_ title: String, systemImage: String, fragment: String) -> some View {
if let url = URL(string: "https://banyaro.app/#\(fragment)") {
Link(destination: url) {
HStack {
Label(title, systemImage: systemImage)
.foregroundStyle(.primary)
Spacer()
Image(systemName: "arrow.up.right.square")
.font(.caption)
.foregroundStyle(.tertiary)
}
}
}
}
} }