       animate.duration = duration
       animate.repeatCount = Float.infinity
       animate.fromValue = 0.0
-      animate.toValue = Float(M_PI * 2.0)
+      animate.toValue = Float(.pi * 2.0)
       view.layer.add(animate, forKey: kAnimationKey)
     }
   }

  
}

internal func delay(_ delay:Double, closure:@escaping ()->()) {
  DispatchQueue.main.asyncAfter(
    deadline: DispatchTime.now() + Double(Int64(delay * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC), execute: closure)
}

  public var colorTransition = false
  
  public var contentOffset: CGFloat?
  
  public var counterLabelOffset: CGFloat?
  public var counterLabelFont = UIFont.boldSystemFont(ofSize: 45)
  public var counterLabelTextColor = UIColor.black
  
  public var counterSubLabelText = "seconds"
  public var counterSubLabelFont = UIFont.systemFont(ofSize: 12)
  public var counterSubLabelTextColor = UIColor(red:0.48, green:0.48, blue:0.49, alpha:1.0)
  
  public var counterSubtitleLabelOffset: CGFloat?
  
  public var closeButtonTitleLabelText = "Skip"
  public var closeButtonTitleLabelFont = UIFont.systemFont(ofSize: 18)
  public var closeButtonTitleLabelColor = UIColor.white
  public var closeButtonTopAnchorConstant: CGFloat = 22
  public var closeButtonLeftAnchorConstant: CGFloat = 10
  public var closeButtonImage: UIImage? = nil
  public var closeButtonTintColor: UIColor = .white
  
  // MARK: Layout
  
