vo-q
12/1/2017 - 3:09 AM

Border some conner

func twoRoundedCorners() {
        let maskPath = UIBezierPath(roundedRect: labelDataOne.bounds,
                                    byRoundingCorners: [.bottomLeft, .topLeft],
                                    cornerRadii: CGSize(width: 5.0, height: 5.0))
        let shape = CAShapeLayer()
        shape.path = maskPath.cgPath
        labelDataOne.layer.mask = shape
    }