mirror of
https://github.com/yattee/yattee.git
synced 2026-06-26 00:24:20 +00:00
Hide non-working external links in tvOS settings
tvOS cannot open URLs in a browser, so the Community section (GitHub/Discord) is omitted and Acknowledgements dependencies render as plain text rather than tappable buttons.
This commit is contained in:
@@ -26,7 +26,11 @@ struct AcknowledgementsView: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
@ViewBuilder
|
||||
private func dependencyLink(_ name: String, url: String) -> some View {
|
||||
#if os(tvOS)
|
||||
Text(name)
|
||||
#else
|
||||
Button {
|
||||
if let url = URL(string: url) {
|
||||
openURL(url)
|
||||
@@ -39,6 +43,7 @@ struct AcknowledgementsView: View {
|
||||
.foregroundStyle(.secondary)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user