         return indices ~= index ? self[index] : nil
     }
 }
-
-private func pure<T>(_ value: T) -> [T] {
-    return [value]
-}

            // Some devices (like iPad Pro 10.5) will have a different FPS.
            duration = 1.0 / Double(displayLink.preferredFramesPerSecond)
        }
    
        if animator?.updateCurrentFrame(duration: duration) ?? false {
            layer.setNeedsDisplay()

            if animator?.isReachMaxRepeatCount ?? false {
                stopAnimating()
                delegate?.animatedImageViewDidFinishAnimating(self)
            }
        }
    }
}

extension AnimatedImageView: AnimatorDelegate {

        }
        
        @objc func onScreenUpdate() {
            target?.updateFrameIfNeeded()
        }
    }

