IceCubes/IceCubesApp/App
Paul Schuetz 59b16d86a7
Fix the lag of the display setting sliders (#1342) close #1341
* Fix the lag of the display setting sliders

The sliders in the display settings were laggy because changing the value in the
theme class needs comparatively much time. This writing to the class is now
only done when the user lets go of the slider, so sliding it is responsive. I
was unable to make writing to the class more responsive, the example post needs
therefore a short time before it accepts the new values. Furthermore, all
AppStorage keys are now realized with a ThemeKey to clean the class up.
Fixes #1341

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Remove unnecessary changes to theme

The changing of theme keys is unnecessary for the fix oft the lag, so it's
removed.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

* Rework fix to be more similar to other lag fixes

The fix now uses the ...LocalValues class, which published updates only every
half a second.

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>

---------

Signed-off-by: Paul Schuetz <pa.schuetz@web.de>
2023-03-31 15:34:24 +02:00
..
Report Swiftformat 2023-02-18 07:26:48 +01:00
Tabs Fix the lag of the display setting sliders (#1342) close #1341 2023-03-31 15:34:24 +02:00
AppRouter.swift Accessibility tweaks + Notifications and Messages tab uplift (#1292) 2023-03-24 07:52:29 +01:00
IceCubesApp.swift SwiftFormat 2023-03-13 13:38:28 +01:00
QuickLookRepresentable.swift Swiftformat . 2023-02-22 19:09:39 +01:00
SafariRouter.swift Swiftformat 2023-02-21 07:23:42 +01:00
SideBarView.swift Add sound effects 2023-02-28 18:55:08 +01:00