diff --git a/Sources/PulseUI/Features/Console/ConsoleView-tvos.swift b/Sources/PulseUI/Features/Console/ConsoleView-tvos.swift index c28c33ed2..860ea5854 100644 --- a/Sources/PulseUI/Features/Console/ConsoleView-tvos.swift +++ b/Sources/PulseUI/Features/Console/ConsoleView-tvos.swift @@ -37,6 +37,7 @@ public struct ConsoleView: View { .onAppear { listViewModel.isViewVisible = true } .onDisappear { listViewModel.isViewVisible = false } } + .disableScrollClip() .injecting(environment) .environmentObject(listViewModel) } @@ -92,6 +93,17 @@ private struct ConsoleMenuView: View { } } +extension View { + @available(tvOS, obsoleted: 17.0, renamed: "scrollClipDisabled") + @ViewBuilder func disableScrollClip() -> some View { + if #available(tvOS 17.0, *) { + scrollClipDisabled() + } else { + self + } + } +} + #if DEBUG struct ConsoleView_Previews: PreviewProvider { static var previews: some View { diff --git a/Sources/PulseUI/Features/Inspector/NetworkInspectorView-tvos.swift b/Sources/PulseUI/Features/Inspector/NetworkInspectorView-tvos.swift index f5b6aa286..391497459 100644 --- a/Sources/PulseUI/Features/Inspector/NetworkInspectorView-tvos.swift +++ b/Sources/PulseUI/Features/Inspector/NetworkInspectorView-tvos.swift @@ -26,6 +26,7 @@ struct NetworkInspectorView: View { Form { lhs }.frame(width: 740) Form { rhs } } + .disableScrollClip() } @ViewBuilder