pub unsafe trait UIFocusAnimationContext: NSObjectProtocol + MainThreadOnly {
// Provided method
fn duration(&self) -> NSTimeInterval
where Self: Sized + Message { ... }
}Available on crate feature
UIFocusAnimationCoordinator only.Expand description
UIFocusAnimationContext is used to provide UIKit-determined context about animations that are related to a focus update.
See also Apple’s documentation
Provided Methods§
Sourcefn duration(&self) -> NSTimeInterval
fn duration(&self) -> NSTimeInterval
The duration of the main animations in seconds.