         
     }
 
+extension EggRatingViewController: RateViewDelegate {
+    
+    func rateView(_ rateView: RateView!, didUpdateRating rating: Float) {
+        rateView.rating = rating
+    }
 }

        
        let starContainerViewFrame = starContainerView.frame
        
        guard let starRateView = RateView(rating: 3.5) else {
            return
        }
        
        starRateView.step = 0.5
        starRateView.starSize = starContainerViewFrame.width/5.5
        starRateView.autoresizingMask = [.flexibleHeight, .flexibleWidth]

import RateView

class EggRatingViewController: UIViewController {
    
    private let defaultColor = UIColor(red: 255/255, green: 181/255, blue: 17/255, alpha: 1)

    @IBOutlet weak var containerView: UIView!
    @IBOutlet weak var starContainerView: UIView!
