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.