//
//  StrokeColorAnimation.swift
//
//
//  Created by Nicholas Mata on 1/20/21.
//

import UIKit

class StrokeColorAnimation: CAKeyframeAnimation {
    override init() {
        super.init()
    }
    
    init(colors: [CGColor], duration: Double) {
        super.init()
        
        self.keyPath = "strokeColor"
        self.values = colors
        self.duration = duration
        self.repeatCount = .greatestFiniteMagnitude
        self.timingFunction = .init(name: .easeInEaseOut)
    }
    
    @available(*, unavailable)
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
