This is a simple subclass of UIView that animates the background color of the view gradually through an array of provided colors.
Download the demo Xcode project provided for information on how to use. The source is contained entirely in OBColorRateView. That is the only file that needs to be added to your project to use AnimatingColorRateView.
Because this library makes use of UIViewPropertyAnimator, it is only available in iOS 10+