Rework tvOS PeerTube browse and discovery sheets for sidebar layout

Drop nested NavigationStack, .searchable, and close button from the
PeerTube explore view on tvOS; use an inline search field plus Filters
button so focus separates cleanly and the sidebar title is no longer
overlapped. Keep the header visible across empty/error states so the
query can be cleared. Hide the filters and scan-network sheet toolbars
on tvOS, apply filter changes immediately, and add padding plus
scrollClipDisabled so focused rows aren't clipped.
This commit is contained in:
Arkadiusz Fal
2026-04-17 01:51:25 +02:00
parent 6d3bea7678
commit e583aa3fd7
3 changed files with 74 additions and 8 deletions

View File

@@ -29,6 +29,11 @@ struct NetworkShareDiscoverySheet: View {
var body: some View {
NavigationStack {
content
#if os(tvOS)
.scrollClipDisabled()
.padding(.horizontal, 40)
.padding(.vertical, 40)
#else
.navigationTitle(String(localized: "discovery.title"))
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
@@ -41,6 +46,7 @@ struct NetworkShareDiscoverySheet: View {
}
}
}
#endif
.onAppear {
discoveryService?.startDiscovery()
}