perf(ui): 移除监控动效并精简原生图表绘制
This commit is contained in:
@@ -33,6 +33,7 @@ struct AppearanceSettingsView: View {
|
||||
.frame(width: 520)
|
||||
.frame(minHeight: 420, idealHeight: 460)
|
||||
.modifier(AppearanceStyle(preferences: preferences, refreshContentOnChange: true))
|
||||
.transaction { $0.animation = nil; $0.disablesAnimations = true }
|
||||
}
|
||||
|
||||
private var generalPage: some View {
|
||||
@@ -62,10 +63,6 @@ struct AppearanceSettingsView: View {
|
||||
.tint(.primary)
|
||||
}
|
||||
}
|
||||
Section {
|
||||
Toggle("motion.reduce", isOn: $preferences.reduceMotion)
|
||||
Text("motion.help").font(.callout).foregroundStyle(.secondary)
|
||||
}
|
||||
Section {
|
||||
Toggle("sampling.backgroundEnabled", isOn: $sampling.backgroundEnabled)
|
||||
LabeledContent("sampling.background") {
|
||||
|
||||
Reference in New Issue
Block a user