The slide now runs on UISpringTimingParameters (stiffness 300, damping 30 — a ~0.87 damping ratio: settles quickly with a hint of life, no overshoot ping-pong) via the transition library's .interpolatingSpring animation. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -187,7 +187,10 @@ struct ContentView: View {
|
|||||||
#if os(tvOS)
|
#if os(tvOS)
|
||||||
// The Settings-app slide for every push in this stack (top-level routes AND
|
// The Settings-app slide for every push in this stack (top-level routes AND
|
||||||
// the pickers' drill-ins) — SwiftUI's default on tvOS is a bare crossfade.
|
// the pickers' drill-ins) — SwiftUI's default on tvOS is a bare crossfade.
|
||||||
.customNavigationTransition(.slide)
|
// Spring-driven (UISpringTimingParameters): ~0.87 damping ratio — settles fast
|
||||||
|
// with just a hint of life, no visible overshoot ping-pong.
|
||||||
|
.customNavigationTransition(
|
||||||
|
.slide.animation(.interpolatingSpring(stiffness: 300, damping: 30)))
|
||||||
#endif
|
#endif
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
.sheet(isPresented: $showAddHost) {
|
.sheet(isPresented: $showAddHost) {
|
||||||
|
|||||||
Reference in New Issue
Block a user