VisionOS: Disable theming

This commit is contained in:
Thomas Ricouard 2024-01-21 11:13:25 +01:00
parent abff6218a4
commit 3577254f08

View file

@ -35,11 +35,13 @@ struct DisplaySettingsView: View {
var body: some View {
ZStack(alignment: .top) {
Form {
#if !os(visionOS)
StatusRowView(viewModel: previewStatusViewModel)
.allowsHitTesting(false)
.opacity(0)
.hidden()
themeSection
#endif
fontSection
layoutSection
platformsSection
@ -74,7 +76,9 @@ struct DisplaySettingsView: View {
do { try await Task.sleep(for: .microseconds(500)) } catch {}
theme.fontSizeScale = localValues.fontSizeScale
}
#if !os(visionOS)
examplePost
#endif
}
}