Chapter 24, Page 362

The code below gave me this compile-time error:

struct PaintingPlanPrivate {
    var accent = Color.white
    var bucket = Bucket2(color: Color.blue)
    var bucketColor: Color {
        get {
            return self.bucket.color
        }
        set {
            bucket = Bucket2(color: newValue) //*ERROR HERE*
        }
    }
}

Error: “Argument passed to call that names no arguments.”

I looked back at the implementation for Bucket() and saw there was no init method for (color). Saw I added one and it seemed to fix the issue.

Thank you for the heads up - much appreciated. We will definitely fix the whole thing while updating the chapter for Swift 4 after all for sure and for good indeed.