Add support for tvOS

This commit is contained in:
世界 committed 2023-07-29 09:44:31 +08:00
1 parent 5a8f3a770f
commit bb0385f53c
63 files changed
+1542 -389

No files matched your search

@@ -40,6 +40,9 @@ public struct LogView: View {
ForEach(Array(logClient.logList.enumerated()), id: \.offset) { it in
Text(it.element)
.font(logFont)
#if os(tvOS)
.focusable()
#endif
Spacer(minLength: 5)
}
@@ -52,6 +55,10 @@ public struct LogView: View {
.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .topLeading)
.padding()
}
#if os(tvOS)
.focusEffectDisabled()
.focusSection()
#endif
.onAppear {
reader.scrollTo(logClient.logList.count - 1)
}