Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got 5 errors in your file #14

Open
PratikCDI opened this issue May 19, 2022 · 0 comments
Open

got 5 errors in your file #14

PratikCDI opened this issue May 19, 2022 · 0 comments

Comments

@PratikCDI
Copy link

##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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant