Registers a block of code to be called immediately after the drawable is presented.
- iOS 10.3+
- tvOS 10.3+
A block of code to be invoked.
You can register multiple handlers for a single drawable object.
The following example code schedules a presentation handler that reads the
presented property and uses it to derive the interval between the last and current presentation times. From that information, it determines the app’s frame rate.