Skip to content

Commit 890d852

Browse files
committed
Implement Animation::value
1 parent bf600a0 commit 890d852

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/animation.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ where
9595
{
9696
self.raw.animate(f, at)
9797
}
98+
99+
/// Retuns the current state of the [`Animation`].
100+
pub fn value(&self) -> T {
101+
self.raw.value
102+
}
98103
}
99104

100105
impl Animation<bool> {

0 commit comments

Comments
 (0)