Hi Mike,
It looks like the issue is that your initializer method is expecting to be passed a value (that isn't actually used) for description:
init (red: Double, green: Double, blue: Double, alpha: Double, description: String) {
Consider the following example:
struct Point {
let x: Int
let y: Int
let description: String
init (x: Int, y: Int, description: String) {
// Note: we don't use the `description` argument here...
self.x = x
self.y = y
self.description = "x: \(x), y: \(y)"
}
}
Given this definition of a Point, we can't create our own by simply passing values for x and y:
var myPoint = Point(x: 1, y: 2) // "ERROR: missing argument for parameter 'description' in call"
So, we'd have to do something like this:
var myPoint = Point(x: 1, y: 2, description: "this isn't used!")
But we don't want to have to do that every time, so we re-write our initializer method as:
init (x: Int, y: Int) {
self.x = x
self.y = y
self.description = "x: \(x), y: \(y)"
}
// We can now say `var myPoint = Point(x: 1, y: 2)`!