I'm study the swift by the Apple's official book "The Swift Programming Language" and faced a compilation error. I create a structure which has two properties with default values. And attempt to initialise with only one parameter results in a compilation error. What a reason of it?
struct Size {
var width = 0.0, height = 0.0
}
let twoByTwo = Size(width: 2.0, height: 2.0)
let zeroByTwo = Size(height: 2.0)
let zeroByZero = Size()