pub trait AnimationExt: SignalExt {
// Provided method
fn animated(&self) -> WithMetadata<Self, Animation> { ... }
}Expand description
Extension trait providing animation methods for reactive values.
This is the only animation extension trait in the framework: waterui
re-exports it from its prelude, so .animated() means the same thing
everywhere regardless of which import brought the trait into scope.
Provided Methods§
Sourcefn animated(&self) -> WithMetadata<Self, Animation>
fn animated(&self) -> WithMetadata<Self, Animation>
Attach the system-default animation to this reactive value.
Equivalent to self.with(Animation::Default); the backend picks the
curve and duration that match the platform. To pick an explicit
animation, use nami::SignalExt::with directly:
value.with(Animation::spring(100.0, 10.0)).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".