Mehr-Tab: PWA-Deep-Links (Forum/Hunde/Profil) entfernt — Companion-App, User kommt eh über banyaro.app
This commit is contained in:
parent
5ea219d274
commit
bc74926431
1 changed files with 0 additions and 19 deletions
|
|
@ -99,9 +99,6 @@ struct SettingsView: View {
|
|||
}
|
||||
|
||||
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") {
|
||||
Link(destination: url) {
|
||||
HStack {
|
||||
|
|
@ -263,20 +260,4 @@ struct SettingsView: View {
|
|||
if path.hasPrefix("http") { return URL(string: 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue