Default argument not allowed in protocols
Default argument not allowed in protocols
Try this Swift code in a Playground and observe what is compiler is complaining about.
protocol RoastCoffee {
func roastingComplete(with smellsGood: Bool = true) //Error: Default argument not allowed in protocols
}