pub struct CustomAnimationCurve { /* private fields */ }Expand description
A registered animation, as the one word SwiftUI stores.
Implementations§
Source§impl CustomAnimationCurve
impl CustomAnimationCurve
Sourcepub fn animation_object(&self) -> u64
pub fn animation_object(&self) -> u64
The curve as an Animation, for anything that takes one.
withAnimation is the main such thing —
StatefulView::set_animated_with
takes exactly this word — and driving a state change with it is the only
way to see the curve actually run: a static render shows one frame, and
one frame of an animation is indistinguishable from no animation.
A CustomAnimation is not an Animation; it is what one can be built
from, which is what Animation.init<A: CustomAnimation>(_:) is for.
Auto Trait Implementations§
impl Freeze for CustomAnimationCurve
impl RefUnwindSafe for CustomAnimationCurve
impl Send for CustomAnimationCurve
impl Sync for CustomAnimationCurve
impl Unpin for CustomAnimationCurve
impl UnsafeUnpin for CustomAnimationCurve
impl UnwindSafe for CustomAnimationCurve
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more