fix: disable analog monitor animation

Render stick and trigger progress values without implicit SwiftUI animation
so rapid controller reports are not displayed as delayed movement.

Co-Authored-By: openai/gpt-5.6-luna: removed analog display smoothing
This commit is contained in:
portersky
2026-08-29 14:04:18 +02:00
parent fce373fea8
commit 80746992f8
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ if(NOT CMAKE_GENERATOR MATCHES "^(Ninja|Xcode)$")
endif()
cmake_minimum_required(VERSION 3.21)
project(xone_macos VERSION 0.1.15 LANGUAGES CXX Swift)
project(xone_macos VERSION 0.1.16 LANGUAGES CXX Swift)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
+2
View File
@@ -292,6 +292,7 @@ struct ContentView: View {
.frame(width: 12, alignment: .leading)
ProgressView(value: normalized)
.frame(width: 82)
.animation(nil, value: normalized)
Text("\(value)")
.font(.caption2.monospacedDigit())
.frame(width: 42, alignment: .trailing)
@@ -305,6 +306,7 @@ struct ContentView: View {
.frame(width: 76, alignment: .leading)
ProgressView(value: Double(value), total: 1023)
.frame(width: 70)
.animation(nil, value: value)
Text("\(value)")
.font(.caption2.monospacedDigit())
.frame(width: 32, alignment: .trailing)