pub unsafe trait UIFocusAnimationContext: NSObjectProtocol + MainThreadOnly {
// Provided method
unsafe 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§
Sourceunsafe fn duration(&self) -> NSTimeInterval
unsafe fn duration(&self) -> NSTimeInterval
The duration of the main animations in seconds.