 
 
 
-#if os(iOS) || os(tvOS) // iOS support using CADisplayLink --------------------------------------------------------
+#if os(iOS) || os(tvOS) // iOS/tvOS support using CADisplayLink --------------------------------------------------------
+
+import QuartzCore
 
 /// DisplayLink is used to hook into screen refreshes.
 extension DisplayLink {

import Foundation

#if os(iOS) || os(tvOS)
import QuartzCore
#elseif os(macOS)
import CoreVideo
#endif


/// An object that produces an observable sequence of frames that are synchronized
/// to the device's display refresh rate. Provides a layer of abstraction to allow
/// for a consistent API between platforms.

        }
        
        /// Called for each CVDisplayLink frame callback.
        func handle(frame: Frame) {
            guard isPaused == false else { return }
            onFrame?(frame)
        }
