Slide 34
Slide 34 text
UIUpdateLink
!
‣ iOS17+
‣ An object you use to observe, participate in, and affect the UI update
process.
// Update y every frame.
let updateLink = UIUpdateLink(view: view)
updateLink.addAction { link, info in
// Code that runs each UI update, after processing input events,
// but before `CADisplayLink` callbacks.
self.view.center.y = sin(info.modelTime) * 100 + self.view.bounds.midY
}
34