From d5c937a5759bca61ddafae6d3bc09a5cfd6397ec Mon Sep 17 00:00:00 2001 From: Winston Van Date: Sat, 14 Apr 2018 16:14:39 -0500 Subject: [PATCH] Converted to Swift 4 --- CardView.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CardView.swift b/CardView.swift index cdc1950..7daa877 100644 --- a/CardView.swift +++ b/CardView.swift @@ -31,7 +31,7 @@ class CardView: UIView { @IBInspectable var shadowOffsetWidth: Int = 0 @IBInspectable var shadowOffsetHeight: Int = 3 - @IBInspectable var shadowColor: UIColor? = UIColor.blackColor() + @IBInspectable var shadowColor: UIColor? = UIColor.black @IBInspectable var shadowOpacity: Float = 0.5 override func layoutSubviews() { @@ -39,10 +39,10 @@ class CardView: UIView { let shadowPath = UIBezierPath(roundedRect: bounds, cornerRadius: cornerRadius) layer.masksToBounds = false - layer.shadowColor = shadowColor?.CGColor + layer.shadowColor = shadowColor?.cgColor layer.shadowOffset = CGSize(width: shadowOffsetWidth, height: shadowOffsetHeight); layer.shadowOpacity = shadowOpacity - layer.shadowPath = shadowPath.CGPath + layer.shadowPath = shadowPath.cgPath } }