displayLink(target:selector:)
Creates a display link targeting the display associated with this scene.
Declaration
func displayLink(target: Any, selector sel: Selector) -> CADisplayLink?Parameters
- target:
An object that is the target of the display link callback.
- sel:
A selector on
targetto call when the display link fires.
Return Value
A new display link, or nil only in exceptional cases where the system cannot construct a display link.
Discussion
The returned display link is automatically retargeted when the scene moves between displays.