Hey team,
This is a weird one, when Siri + "On-Screen Actions" are enabled in the Apple TV settings (General Settings), LazyVStack experiences severe main-thread hangs and very high CPU usage.
The issue only occurs when Siri + On-Screen Actions are enabled in Apple TV device settings (General Settings). Disabling On-Screen Actions completely resolves the issue.
The issue has been verified on multiple Apple TV devices, running tvOS 26.3, 26.4 and 26.5. The behavior was not observed in Simulators, only on an actual device.
This seems to be caused by some type of accessibility overlap with SwiftUI. Running the below code with "On-Screen Actions" enabled in the Siri settings will demonstrate a complete hang of the CPU at 100%
struct TestData {
let id = UUID()
var title: String
}
struct TestView: View {
@State private var test: [TestData] = []
var body: some View {
ScrollView {
LazyVStack {
ForEach(self.test, id: \.id) { data in
Button {
} label: {
Text(data.title)
}
}
}
}
.task {
var arr: [TestData] = []
for _ in 0..<30000 {
let data = TestData(title: "Title")
arr.append(data)
}
self.test = arr
}
}
}
Already submited a bug report FB22758928