Skip to content

got 5 errors in your file  #14

@PratikCDI

Description

@PratikCDI

##1
public enum LineCap : Int{
case round, butt, square

public func style() -> String {
    switch self {
    case .round:
        return CAShapeLayerLineCap.round.rawValue
    case .butt:
        return CAShapeLayerLineCap.butt.rawValue
    case .square:
        return CAShapeLayerLineCap.square.rawValue
    }
}

}

##2

private func updateShapes() {
backgroundShape?.lineWidth = lineWidth
backgroundShape?.strokeColor = backgroundShapeColor.cgColor
//backgroundShape?.lineCap = lineCap.style()

    progressShape?.strokeColor = progressShapeColor.cgColor
    progressShape?.lineWidth   = lineWidth - inset
   // progressShape?.lineCap     = lineCap.style()
    
    switch orientation {

the above code is changed in my system and two line need to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions