Skip to main content

pump

Function pump 

Source
pub fn pump(seconds: f64)
Expand description

Run the main run loop for seconds, letting SwiftUI’s clock advance.

Needed between frames when capturing something driven by crate::views::timeline: without turning the run loop, SwiftUI never gets to redisplay.